-
Notifications
You must be signed in to change notification settings - Fork 26.1k
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
Show both internal and shared state managment in example. #7312
Commits on May 12, 2019
-
Show both internal and shared state managment in example.
I pointed someone at this example and they were confused by the shared state example. To help with their confusion I updated the example to show both shared and internal component state. There is an issue with the `IncrementGlobal` action that I've so far been unable to sort out. Upon first load, if you click the `Add` button beneath the `Persistan Count` display then the `IncrementGlobal` action seems to be dispatched twice on a single click. Hopefully, someone will be able to point out my, likely, very dumb error.
Nathan Anthony Sculli authored and Nathan Anthony Sculli committedMay 12, 2019 Configuration menu - View commit details
-
Copy full SHA for 837cb45 - Browse repository at this point
Copy the full SHA 837cb45View commit details -
Configuration menu - View commit details
-
Copy full SHA for 641e0e2 - Browse repository at this point
Copy the full SHA 641e0e2View commit details
Commits on May 14, 2019
-
Merge branch 'canary' of https://github.com/zeit/next.js into rework-…
…fix-for-issue-5049
Configuration menu - View commit details
-
Copy full SHA for c34decf - Browse repository at this point
Copy the full SHA c34decfView commit details -
Merge branch 'rework-fix-for-issue-5049' of github.com:scull7/next.js…
… into rework-fix-for-issue-5049
Configuration menu - View commit details
-
Copy full SHA for 9a83571 - Browse repository at this point
Copy the full SHA 9a83571View commit details
Commits on May 15, 2019
-
Add a global state custom hook.
Adding a custom hook to track the global state eliminates the double increment on first click issue and leads to all of the reference tracking being in the GlobalCount module. Also, this does not require the use of any odd concept within the components themselves.
Configuration menu - View commit details
-
Copy full SHA for 6326057 - Browse repository at this point
Copy the full SHA 6326057View commit details -
Configuration menu - View commit details
-
Copy full SHA for ca8fbfa - Browse repository at this point
Copy the full SHA ca8fbfaView commit details -
Configuration menu - View commit details
-
Copy full SHA for c250e97 - Browse repository at this point
Copy the full SHA c250e97View commit details -
Configuration menu - View commit details
-
Copy full SHA for 03e7282 - Browse repository at this point
Copy the full SHA 03e7282View commit details -
Configuration menu - View commit details
-
Copy full SHA for bf448b2 - Browse repository at this point
Copy the full SHA bf448b2View commit details
Commits on May 16, 2019
-
Revert "Provide example using context API"
This reverts commit 03e7282.
Configuration menu - View commit details
-
Copy full SHA for ea84168 - Browse repository at this point
Copy the full SHA ea84168View commit details -
Merge branch 'rework-fix-for-issue-5049' of github.com:scull7/next.js…
… into rework-fix-for-issue-5049
Configuration menu - View commit details
-
Copy full SHA for 2bd23b5 - Browse repository at this point
Copy the full SHA 2bd23b5View commit details
Commits on May 17, 2019
-
Configuration menu - View commit details
-
Copy full SHA for d9af316 - Browse repository at this point
Copy the full SHA d9af316View commit details
Commits on May 19, 2019
-
Configuration menu - View commit details
-
Copy full SHA for 8a277c4 - Browse repository at this point
Copy the full SHA 8a277c4View commit details