You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As observed by myself and wmertens in #apollo-client-core. Every time an action occurs, Apollo spends a significant amount of time performing a deep equals of its state. Mostly quoting wmertens here:
As observed by myself and wmertens in #apollo-client-core. Every time an action occurs, Apollo spends a significant amount of time performing a deep equals of its state. Mostly quoting wmertens here:
In particular, https://github.com/apollostack/apollo-client/blob/ab3d49e7234bf44f9788ef0fd9b5544a2909fa3d/src/ApolloClient.ts#L465 gets executed every time I dispatch any action, and it looks at the active queries and does a deep comparison of their results, which takes 200ms in my case.
Seems to me that at the very least, there should be a test there for the action type, so it only fires on types starting with "APOLLO_"
The text was updated successfully, but these errors were encountered: