Skip to content

Conversation

@kiprasmel
Copy link
Contributor

we use it inside a useEffect dependency array, and now that it's no longer coming from useState, it gets reset everytime & the logic breaks. the wrapping in useCallback fixes this.

Copy link
Collaborator

@Cahllagerfeld Cahllagerfeld left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add a changeset please, so we can publish a new version of

we use it inside a useEffect dependency array, and now that it's no
longer coming from `useState`, it gets reset everytime & the logic
breaks. the wrapping in useCallback fixes this.
@kiprasmel kiprasmel force-pushed the fixup-wrap-use-callback branch from 8cea8ac to bad93d1 Compare January 22, 2025 09:27
@kiprasmel kiprasmel merged commit a612cbd into main Jan 22, 2025
2 checks passed
@kiprasmel kiprasmel deleted the fixup-wrap-use-callback branch January 22, 2025 09:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants