omnidan / redux-undo

:recycle: higher order reducer to add undo/redo functionality to redux state containers
MIT License
2.91k stars 188 forks source link

undoable does not work with RTK's createSlice #287

Closed mjsokolo closed 3 years ago

mjsokolo commented 3 years ago

This seems to work when writing slices in typescript as shown here 1) Is there an equivalent workaround in JS? 2) Documentation for using createSlice() with either typescript or JS doesn't exist

Note: for support questions about the usage of the library, please ask questions on the gitter chat. The issue tracker is reserved for feature requests, bug reports and similar issues. Visit the gitter chat here.

I'm submitting a ...

What is the current behavior/state of the project?

What is the desired behavior?

If this is a feature request, what is the use case for changing the behavior?

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via a gist or similar.

Please tell us about your environment:

Other information

(e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, gitter, etc)

mjsokolo commented 3 years ago

n/m user error