Skip to content

Custom JSON.stringify/parse for mobx observables #3000

Answered by urugator
gioragutt asked this question in General
Discussion options

You must be logged in to vote

Looks like toJSON impl was added in 6.0, dunno what was the reasoning here.

I think you can check the original type in replacer using this: isObservableMap(this[key]).

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@gioragutt
Comment options

@gioragutt
Comment options

Answer selected by gioragutt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants