Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[REF-3375] useMemo on generateUUID props to maintain consistent value #3708

Merged
merged 1 commit into from
Jul 27, 2024

Conversation

masenf
Copy link
Collaborator

@masenf masenf commented Jul 25, 2024

When using rx.vars.get_uuid_string_var, wrap the prop Var in useMemo so that the value remains consistent across re-renders of the component.

Fix #3707 (repro code is working correctly with this fix)

When using rx.vars.get_uuid_string_var, wrap the prop Var in `useMemo` so that
the value remains consistent across re-renders of the component.

Fix #3707
@masenf masenf requested a review from ElijahAhianyo July 25, 2024 22:43
@masenf masenf merged commit a4e3f05 into main Jul 27, 2024
47 checks passed
@masenf masenf deleted the masenf/memo-generate-uuid branch July 27, 2024 00:10
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.

[REF-3375] Accordion Item that depends on state var does not stay open unless value prop is set.
2 participants