Polymer / pwa-helpers

Small helper methods or mixins to help you build web apps.
BSD 3-Clause "New" or "Revised" License
439 stars 48 forks source link

lazy-reducer-enhancer: All selectors re-run after using store.addReducers #36

Closed itsjustbrian closed 6 years ago

itsjustbrian commented 6 years ago

My guess is that this happens because the store is copied, invalidating any arrays/objects in the selector. Might be unavoidable. But there's potential for a lot of unnecessary and expensive computation happening all at once here. And since reducers are usually added when loading a new page, janky page loads could happen in larger apps.

itsjustbrian commented 6 years ago

I'm inexplicably not observing this behavior anymore with a different configuration of my app, so closing this issue for now.