mironov / react-redux-loading-bar

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

Re-export constants from reducer #132

Closed MasterOdin closed 10 months ago

MasterOdin commented 10 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 10 months ago

@MasterOdin Good idea, merging! Thank you.