Coder Social home page Coder Social logo

Comments (6)

mironov avatar mironov commented on July 23, 2024 5

@ProIcons Just to double-check: how do you import LoadingBar?

import LoadingBar from 'react-redux-loading-bar' connects to Redux store automatically
import { LoadingBar } from 'react-redux-loading-bar' does not connect to the Redux store, and thus won't react to dispatched actions

from react-redux-loading-bar.

mironov avatar mironov commented on July 23, 2024 1

@Dani-Boy92 Hey, everything seems right from the first look. Could you make sure that Loading Bar is shown when explicitly set to loading="1"?

You would need to import not decorated Loading Bar component and mount it as follows:

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

// ...

<LoadingBar loading="1" />

from react-redux-loading-bar.

ProIcons avatar ProIcons commented on July 23, 2024 1

I have the same issue, actions are getting dispaatched and loading bar isn't showing. with loading=1 it does.
I have another prroject where it works as expected. same versions

I ended up doing this ugly thing:

<LoadingBar loading={this.props.rootState.loadingBar.app} scope={"app"} showFastActions className="loading-bar"/>

from react-redux-loading-bar.

rahul3883 avatar rahul3883 commented on July 23, 2024

Default import works. Thanks @mironov

from react-redux-loading-bar.

ProIcons avatar ProIcons commented on July 23, 2024

Yeah that was the problem :)

from react-redux-loading-bar.

Dani-Boy92 avatar Dani-Boy92 commented on July 23, 2024

Sorry for the late reponse. @mironov diagnosed the problem. There was an issue with the import. Thanks for your support. I will close the issue.

from react-redux-loading-bar.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.