Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: allow function type reducers and revivers #85

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

TomerAberbach
Copy link

This also technically just allows any type to be overridden with reducers and revivers. I think this fixes #71.

My use-case is I want to update https://github.com/markwylde/workerbox to use devalue for passing values between the worker the UI thread, but I need to set a custom reducer and reviver for functions, which devalue doesn't currently let me do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

devalue is too strict about what can be serialized with custom types
1 participant