-
Notifications
You must be signed in to change notification settings - Fork 2k
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
ui.queryArguments: update state less aggressively #6818
Conversation
14a1799
to
458c9e4
Compare
Code is on fleek. Are we certain that we won't ever need the timestamp when querying these events? |
Are you referring to the test in |
Ooh, that passed me right by. |
I meant the former ... but thinking about it again I realize that it will definitely update when a different route is visited. So I'm good on that front. Good call with making an actual timestamp argument problematic -- rename to _timestamp sounds sensible! |
I've underscore-prefixed |
LGTM |
Forgot to squash. D'oh. |
To implement once #6417 is merged.
Every time
ROUTE_SET
is dispatched, theui.queryArguments.current
branch updates itself regardless of whether there is any change in the query data. This potentially leads to unnecessary renders in the view layer or recalculations in memoized selectors.Test live: https://calypso.live/?branch=update/ui-query-arguments-overwrites