question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Event loading-bar/SHOW is being triggered but the component still hidden

See original GitHub issue

I’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:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
mironovcommented, Jul 26, 2017

@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

import LoadingBar from 'react-redux-loading-bar'

to

import { ImmutableLoadingBar as LoadingBar } from 'react-redux-loading-bar'
0reactions
mparker11commented, Jul 25, 2017

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found