redux with coarse selectors
-
-
Replying to @threepointone @kentcdodds
user interactions on low end devices
1 reply 0 retweets 10 likes -
-
-
Replying to @kentcdodds
People send a lot of data in the json blob for reconstructing the react tree on first render, and that’s a synchronous blocking op that can take a while.
1 reply 0 retweets 9 likes -
Replying to @threepointone
Gotcha. What does that have to do with unnecessary rerenders though? Isn't that initial render kinda necessary?
1 reply 0 retweets 0 likes -
Replying to @kentcdodds
By definition it’s an unnecessary render, no? I think it’s the nature of the render that’s the problem (sync, blocking). Will get better soon.
2 replies 0 retweets 4 likes -
Replying to @threepointone @kentcdodds
That's the worst kind of problem to have. A while ago I had a tabbed interface that changed a page of widgets, and the costly thing was mounting a new page of 10+ widgets because it destroyed all of the previous widgets and remounted completely new ones.
1 reply 0 retweets 0 likes -
The widgets were probably reusable to an extent - they were visually very similar. I'm not sure what you're meant to do in this kind of situation.
1 reply 0 retweets 0 likes -
Would setting unique keys have helped with this?
1 reply 0 retweets 0 likes
The keys were different. It was different data - just the same UI elements.
-
-
Right, but that’s what React keys are for, if I remember correctly. If you can maintain the same key across rerenders (even with different data), React will reuse the component as much as it can.
1 reply 0 retweets 0 likes -
That doesn't seem correct to me. In that case, we'd use keys like `key="some-reusable-ui"` and just pass different data in. I thought a key had meant to uniquely identify a particular instance of a component, and not just the type of component.
1 reply 0 retweets 1 like - 10 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.