Closed CROSP closed 6 years ago
@CROSP Hi, thank you for the question.
How do you import the LoadingBar
component? The library exports both the connected container and the component itself. The latter isn't connected to the Redux store and doesn't react to store changes.
Please make sure you are importing the connected container:
import LoadingBar from 'react-redux-loading-bar'
@mironov Hi, thank you for your reply !!! Your are absolutely right, I have imported incorrect component, after importing the default one class everything works perfectly. Many thanks.
Hi, thank you for a great library, however I have a problem, that haven't been able to solve for several hours.
My
index
file has the following contentI added the middleware as follows
And reducers in the following way
The
loading-bar/SHOW
is triggeredHowever it still not display the Loading Bar,
<div></div>
and in React debuggerIf I change the
loading
state manually from React Debugger it works and displayed correctly. Dispatching the event only causes theloading-bar/SHOW
to be broadcasted, I have set a break point in LoadingReducer and it reaches it, albeit the internal state of loader is not changed.What may cause such behavior?