Skip to content

Conversation

@monahans
Copy link

@monahans monahans commented Oct 5, 2022

adding useCallback here fixed a few things:

  1. Bug: if you used multiple useDecision hooks with { autoUpdate: true }, the second one would not autoUpdate (you had to fully reload the app to get the decision to update)
  2. Before it was redefining getCurrentDecision on every rerender of the useDecision hook, which decreased performance
@mikechu-optimizely
Copy link
Contributor

This seems to relate to #196 and (now) internal ticket FSSDK-9624

@junaed-optimizely
Copy link
Contributor

@monahans, this has been added in #273 with so many other improvements. Thanks for the suggestion. Closing this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

3 participants