mironov / react-redux-loading-bar

Loading Bar (aka Progress Bar) for Redux and React
https://mironov.github.io/react-redux-loading-bar/
MIT License
937 stars 93 forks source link

Re-export constants from reducer #132

Closed MasterOdin closed 11 months ago

MasterOdin commented 11 months ago

PR makes it so that the constants (DEFAULT_SCOPE, HIDE, RESET, SHOW) from the reducer file so that downstream libraries can use them.

In our application, we want to implement our own version of loadingBarReducer where the state is a simple toggle, vs it being a counter, and having these be a top level exports would simplify things / give us confidence that our implementation won't break on us.

mironov commented 11 months ago

@MasterOdin Good idea, merging! Thank you.