HenrikJoreteg / redux-bundler

Compose a Redux store out of smaller bundles of functionality.
https://reduxbundler.com
583 stars 46 forks source link

Fix should update of create async resource bundle #45

Closed layflags closed 5 years ago

layflags commented 5 years ago

This PR allows having simple async data like e.g. 0 w/o should update selector returning true forever.

Background: I wanted to create a notification counter bundle based on createAsyncResourceBundle, that simply stores the count as data (initial state = 0). After creating an auto fetch reactor based on should update selector, I realized that I had created an infinite loop 😱.

HenrikJoreteg commented 5 years ago

This makes sense, thanks!

HenrikJoreteg commented 5 years ago

published as part of 23.1.0 🎉