Skip to content

Commit

Permalink
fix deps
Browse files Browse the repository at this point in the history
  • Loading branch information
zhzLuke96 committed Jan 10, 2024
1 parent acb4835 commit 3b06280
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ function App() {

const tokens = useMemo(() => {
return tokenizer.tokenize(value).tokens;
}, [value]);
}, [tokenizer, value]);

// highlight ranges
const [highlight, setHighlight] = useState(null as null | [number, number]);
Expand Down

0 comments on commit 3b06280

Please sign in to comment.