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.

Hey, I was wondering if you guys have a recommended way for implementing undo/redo in RTK. redux-undo is incompatible and it looks like we can’t use immer patches because createReducer doesn’t use the produce function.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:17 (4 by maintainers)

github_iconTop GitHub Comments

5reactions
markeriksoncommented, Jun 20, 2022

@zoubingwu : I think that’s a semi-known issue with RTK and TS somehow. Try moving the undoable call out to be a separate line of code, like const finalCounterReducer = undoable(counterReducer).

3reactions
msutkowskicommented, May 26, 2020

@satheshrgs I added redux-undo to the official RTK TS template as a quick example - https://codesandbox.io/s/rtk-redux-undo-example-titr4. Hopefully, that helps you out. If you need any further assistance, try #redux on the Reactiflux Discord as there are many users that actively monitor that channel.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Undo, redo, or repeat an action - Microsoft Support
You can undo, redo, or repeat many actions in Microsoft Word, PowerPoint, and Excel ... If you can't undo an action, the Undo...
Read more >
How to Undo & Redo in Word - CustomGuide
Redo is the opposite of undo: it redoes an action you have undone. For example, if you decide that you do, after all,...
Read more >
Undo or redo changes in Pages on Mac - Apple Support
You can undo recent changes you make to a document, then redo them if you change your mind. Do any of the following:...
Read more >
UNDO REDO - YouTube
Provided to YouTube by Monkeytown Records UNDO REDO · Moderat · Sebastian Szary · Gernot Bronsert · Sascha Ring · Sascha Ri …...
Read more >
Undo and Redo | Vim Tips Wiki - Fandom
To undo recent changes, from normal mode use the undo command: u: undo last change (can be repeated to undo preceding commands) Ctrl-r:...
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