Skip to content

Commit

Permalink
make update about reactive data (#165)
Browse files Browse the repository at this point in the history
  • Loading branch information
charkour authored Mar 10, 2024
1 parent b236fe2 commit 253f6c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ Your zustand store will now have an attached `temporal` object that provides acc
const App = () => {
const { bears, increasePopulation, removeAllBears } = useStoreWithUndo();
// See API section for temporal.getState() for all functions and
// properties provided by `temporal`
// properties provided by `temporal`, but note that properties, such as `pastStates` and `futureStates`, are not reactive when accessed directly from the store.
const { undo, redo, clear } = useStoreWithUndo.temporal.getState();

return (
Expand Down

0 comments on commit 253f6c9

Please sign in to comment.