Open rowrowrowrow opened 2 years ago
Hi @rowrowrowrow Thanks for your PR, please also provide the use case on why you want to add this feature, thanks. Currently, I don't want to add too many new features, as I'm trying to refactor the code and redesign certain parts.
@aohua Yep I understand about adding too many features. So from my perspective there are two ways that we can alter actions before they are shared with other windows.
Please take a look at https://github.com/aohua/redux-state-sync/issues/90 for more explanation as to why you might need to modify an action. In my specific case I run into structured clone algorithm issues. Thanks!
@aohua I also updated this PR as well. Thanks!
Friendly reminder @aohua
@aohua This is a first take at something like a prepareAction function. Please let me know what you think. It addresses https://github.com/aohua/redux-state-sync/issues/90