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.

autoRehydrate no longer working after upgrading 0.30 to 0.31

See original GitHub issue

I just upgraded my app from 0.30 to 0.31 and noticed the autoRehydrate feature is no longer working. I have set up my store like so:

const store = createStore(rootReducer, middleware, autoRehydrate());

And i was ‘logging’ the REHYDRATE action like so:

export default function persist(state = initialState, action) {
  switch (action.type) {
    case REHYDRATE:
      return {
        ...state,
        storageLoaded: true,
      };
    default:
      return state;
  }
}

But since upgrading the REHYDRATE action stopped ‘firing’ and no data is persisted between reloads of the app. I’m using the asyncStorage storage engine.

Is this a known issue? Should i reconfigure anything after upgrading?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
tijscommented, Sep 19, 2016

yes it did! simple upgrade fixed it.

1reaction
tijscommented, Sep 9, 2016

@rt2zz strangely enough i still see the issue on android but only with remote debugging turned on; when i turn remote debugging off REHYDRATE works fine and the app loads. When i have remote debugging on REHYDRATE never fires. I assume this is also something in my configuration then since you said people are running 0.31 without issues but i just wanted to double check if that rings any bells for you…

Read more comments on GitHub >

github_iconTop Results From Across the Web

redux-persist autoRehydrate not defined in new version
As I understand, within new update there is no more autoRehydrate . But I can't handle, how to update the code so it...
Read more >
autoRehydrate not working after production minifcation #362
There's an odd behavior happening with my app now, if I build the package using NODE_ENV=development, everything works as it's supposed to ...
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