Skip to content

Commit

Permalink
docs(pitfalls): fix store subscription argument order (pmndrs#2086)
Browse files Browse the repository at this point in the history
  • Loading branch information
tresabhi authored Feb 22, 2022
1 parent 78046f2 commit 2f4c234
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/advanced/pitfalls.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ const ref = useRef()
useEffect(
() =>
api.subscribe(
(x) => (ref.current.position.x = x),
(state) => state.x,
(x) => (ref.current.position.x = x),
),
[],
)
Expand Down

0 comments on commit 2f4c234

Please sign in to comment.