Event loading-bar/SHOW is being triggered but the component still hidden
See original GitHub issueI’m trying to use this component but for some reason it looks like the component is not reacting to the state, the events are triggered but the bar doesn’t shows up… I’m using version 2.9.0
btw and react 15.5.4
…
my setup:
const middleware = applyMiddleware(
routerMiddleware(history),
promise(),
thunk,
loadingBarMiddleware(),
createLogger()
);
const store = createStore(
combineReducers({
...
loadingBar,
router
}),
middleware
);
...
ReactDOM.render(
(
<Provider store={store}>
<ConnectedRouter history={history}>
<div id="app">
<LoadingBar showFastActions className="progress-bar"/>
...
</div>
</ConnectedRouter>
</Provider>
),
document.getElementById('root')
);
UPDATE:
not even with saga and triggering the events manually it doesn’t seems to work.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:11 (6 by maintainers)
Top Results From Across the Web
Hidden input doesn't trigger React's onChange event
This event fires at a time when it's possible to change the element's value without seeing a flicker. The plugin triggers change event...
Read more >Dialog visible attr change not triggers any hide events #956
Setting display=false in the buttons' click handlers correctly hides the dialog, but it doesn't trigger the onBeforeHide or onAfterHide events.
Read more >Event being fired but email notification not being... - ServiceNow
I have an event that is triggered through a run script activity in a request item workflow. The event is fired correctly and...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@mparker11 Yep, that’s it. React Boilerplate seems to include the immutable store: https://github.com/react-boilerplate/react-boilerplate/blob/master/docs/js/immutablejs.md
In that case you can import the immutable version of the Loading Bar. Change
to
@mironov Ah, I didn’t even think about that! It slipped my mind because I’m using React Boilerplate. I guess you can totally ignore that pull request. It works for me now! Thanks! I just learned more on when to use
get
vs the dot notation as well.