Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

7
  • 1
    What, or where, is this todo list reducer? You mention state slices, are you using redux-toolkit by any chance? Can you edit the post to include a more complete and comprehensive minimal reproducible example that includes all relevant code being used? Commented May 17, 2023 at 5:59
  • @DrewReese I am not using RTK, I am using react-redux. I should note that this app worked perfectly until recently and I am not sure what changed and caused the issue. Commented May 17, 2023 at 16:49
  • 1
    Well, this is just one dev's opinion, but it's 2023 and we don't really bother writing bulky legacy redux code anymore; it's highly suggested to start using RTK as it significantly reduces the amount of boilerplate code you need to write. I don't see any overt issues here with the persist logic that would preclude specifically the state.todoList state from being persisted, e.g. it's not black listed in the persist configuration. Think you could stand up a running codesandbox demo that reproduces this issue that we could inspect live? Commented May 17, 2023 at 17:06
  • 1
    There unfortunately appears to be an issue trying to load the codesandbox you linked in your post. Commented May 18, 2023 at 5:15
  • 1
    OK, thanks. I'll take a look when I have availability. Commented May 19, 2023 at 16:48