Coder Social home page Coder Social logo

Comments (6)

rt2zz avatar rt2zz commented on May 15, 2024

Two actions simultaneously should be no problem. Could this be related to the debounce issue you reported earlier?

The only other thing I can think of is that redux-persist only stores state which changes, i.e. does not have reference eqaulity. So make sure you are not mutating your state for uploadDone, and are rather copying it, typically with a return {...newState} in your reducer.

from redux-persist.

jburich avatar jburich commented on May 15, 2024

@egeriis Are you on version 3.0.3? I was having the same problem with very very similiar code and the problem was in createPresistor endState was pulling from a local state variable instead of store.getState() which causes the data to be stale. I just upgraded to 3.0.3 and that fixed the problem.

from redux-persist.

rt2zz avatar rt2zz commented on May 15, 2024

@jburich fantastic, I just released 3.0.3 to solve the debounce issue, and I guess this solved collaterally ๐ŸŽ‰ (or I guess more accurately this simply the same issue)

from redux-persist.

egeriis avatar egeriis commented on May 15, 2024

@jburich I am not. 3.0.2. Will try to pull 3.0.3 tomorrow and see if it has fixed my issue :)

from redux-persist.

egeriis avatar egeriis commented on May 15, 2024

@rt2zz Btw., definitely not state mutation, as I am using ImmutableJS to handle state changesโ€”to ensure that there are no mutations.

I've experienced that { ... state } does not do a deep clone.

from redux-persist.

egeriis avatar egeriis commented on May 15, 2024

Works with 3.1.1. Great!

from redux-persist.

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.