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

Ensure single instance of "actions" #940

Open
izri16 opened this issue Apr 7, 2021 · 0 comments
Open

Ensure single instance of "actions" #940

izri16 opened this issue Apr 7, 2021 · 0 comments
Assignees
Labels

Comments

@izri16
Copy link
Collaborator

izri16 commented Apr 7, 2021

  • see Memoized useActions #938

  • even after changes in the above PR, the useActions hook produce new actions for each component where it is used

Instead:
-> using the single "Store" instance we have (see walletApp component) initialize actions object that all components can just import (either via hook or just via standard import)
-> investigate if it does not lead to some problems or the approach is not dead-end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants