-
Notifications
You must be signed in to change notification settings - Fork 1
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
keep reactive computations synchronous with the render phase #1
Commits on Jun 21, 2019
-
- rewrite useTracker in order to stay fully consistent with current w…
…ithTracker behavior - compare deps in order to keep API consistency to React.useEffect()
menelike committedJun 21, 2019 Configuration menu - View commit details
-
Copy full SHA for fe4fa42 - Browse repository at this point
Copy the full SHA fe4fa42View commit details -
- withTracker should always recompute on re-render so deps for useTra…
…cker() can be omitted - also React.memo() already has a check for prop change so there is no need to check for changed deps again
menelike committedJun 21, 2019 Configuration menu - View commit details
-
Copy full SHA for fbc33c6 - Browse repository at this point
Copy the full SHA fbc33c6View commit details -
update Readme to reflect omitted deps behavior
menelike committedJun 21, 2019 Configuration menu - View commit details
-
Copy full SHA for c8d8645 - Browse repository at this point
Copy the full SHA c8d8645View commit details -
menelike committed
Jun 21, 2019 Configuration menu - View commit details
-
Copy full SHA for 44b5247 - Browse repository at this point
Copy the full SHA 44b5247View commit details -
get rid of Math.random(), wasn't needed at all
menelike committedJun 21, 2019 Configuration menu - View commit details
-
Copy full SHA for ddfb7cd - Browse repository at this point
Copy the full SHA ddfb7cdView commit details -
don't handle Meteor.isServer as it's already been taken care of in ex…
…ports
menelike committedJun 21, 2019 Configuration menu - View commit details
-
Copy full SHA for 365584f - Browse repository at this point
Copy the full SHA 365584fView commit details -
replace Math.random() when enforcing an update
menelike committedJun 21, 2019 Configuration menu - View commit details
-
Copy full SHA for c3803b9 - Browse repository at this point
Copy the full SHA c3803b9View commit details
Commits on Jun 22, 2019
-
- align areHookInputsEqual with
https://github.com/facebook/react/blob/d77d12510b1a1c37484d771a323e0a02cbeb9ba7/packages/react-reconciler/src/ReactFiberHooks.js#L231 https://github.com/facebook/react/blob/d77d12510b1a1c37484d771a323e0a02cbeb9ba7/packages/react-reconciler/src/ReactFiberHooks.js#L318-L329 https://github.com/facebook/react/blob/d77d12510b1a1c37484d771a323e0a02cbeb9ba7/packages/react-reconciler/src/ReactFiberHooks.js#L878 - update comments
menelike committedJun 22, 2019 Configuration menu - View commit details
-
Copy full SHA for eeb115a - Browse repository at this point
Copy the full SHA eeb115aView commit details -
warn if dep is not an array when Meteor isDevelopment
menelike committedJun 22, 2019 Configuration menu - View commit details
-
Copy full SHA for 1eb71dd - Browse repository at this point
Copy the full SHA 1eb71ddView commit details -
menelike committed
Jun 22, 2019 Configuration menu - View commit details
-
Copy full SHA for 6b540e6 - Browse repository at this point
Copy the full SHA 6b540e6View commit details -
warn if initial deps is not an array
menelike committedJun 22, 2019 Configuration menu - View commit details
-
Copy full SHA for 8d64e41 - Browse repository at this point
Copy the full SHA 8d64e41View commit details
Commits on Jul 1, 2019
-
Retain synchronous render behavior for firstRun (including after deps…
… change), but allow async and computation reuse after.
Configuration menu - View commit details
-
Copy full SHA for b1996a2 - Browse repository at this point
Copy the full SHA b1996a2View commit details -
Configuration menu - View commit details
-
Copy full SHA for af6a4a0 - Browse repository at this point
Copy the full SHA af6a4a0View commit details -
Merge branch 'hooks' into half-duplex
# Conflicts: # packages/react-meteor-data/useTracker.js
Configuration menu - View commit details
-
Copy full SHA for f31b95d - Browse repository at this point
Copy the full SHA f31b95dView commit details
Commits on Jul 2, 2019
-
disambiguate the disposition of previous computation - this works the…
… same as before, but is easier to read
Configuration menu - View commit details
-
Copy full SHA for be11569 - Browse repository at this point
Copy the full SHA be11569View commit details
Commits on Jul 4, 2019
-
Configuration menu - View commit details
-
Copy full SHA for d77fab5 - Browse repository at this point
Copy the full SHA d77fab5View commit details -
Configuration menu - View commit details
-
Copy full SHA for bfbf823 - Browse repository at this point
Copy the full SHA bfbf823View commit details -
Configuration menu - View commit details
-
Copy full SHA for 80fef10 - Browse repository at this point
Copy the full SHA 80fef10View commit details -
If reactiveFn will run synchrously next render, don't bother running …
…it asynchronously
Configuration menu - View commit details
-
Copy full SHA for 8ae0db4 - Browse repository at this point
Copy the full SHA 8ae0db4View commit details -
Configuration menu - View commit details
-
Copy full SHA for f68ae5b - Browse repository at this point
Copy the full SHA f68ae5bView commit details
Commits on Jul 5, 2019
-
Configuration menu - View commit details
-
Copy full SHA for c587026 - Browse repository at this point
Copy the full SHA c587026View commit details -
Configuration menu - View commit details
-
Copy full SHA for d801348 - Browse repository at this point
Copy the full SHA d801348View commit details