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

Evaluate Reductive for global state #56

Open
Yakimych opened this issue Sep 15, 2019 · 0 comments
Open

Evaluate Reductive for global state #56

Yakimych opened this issue Sep 15, 2019 · 0 comments

Comments

@Yakimych
Copy link
Owner

Yakimych commented Sep 15, 2019

Background

There are several situations where the absence of global state resulted in overcomplicated solutions:

  • highlighting newly added results (a combination of useRef and useEffect with less-than-readable code)
  • showing the "My Stats" link in the header when the "current" player has been determined (currently requires a page refresh)

Possible solutions

  • React Context (already tried it and it resulted in an even more complex solution)
  • Reductive for global state
  • Apollo local state

This issue is about trying out Reductive now that it has been updated to the hooks API.

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

No branches or pull requests

1 participant