Skip to content

Conversation

@OEvgeny
Copy link
Contributor

@OEvgeny OEvgeny commented Nov 14, 2024

Changelog

Fixed

  • Fixed usePropagate hook to return a stable function reference across re-renders, in PR #23, by @OEvgeny

Specific changes

  • Added useCallback hook to memoize the propagation function
  • Added test case to verify function reference stability across re-renders
  • Maintained existing propagation-during-render warning behavior

@OEvgeny OEvgeny marked this pull request as ready for review November 14, 2024 20:55
@compulim compulim merged commit a9ee70f into compulim:main Nov 14, 2024
12 checks passed
@OEvgeny OEvgeny deleted the fix/unstable-use-propagate-ref branch November 14, 2024 23:40
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.

2 participants