Skip to content

Redux Toolkit configuration - adding a custom Type #29

Answered by karmaniverous
mlynde asked this question in Q&A
Discussion options

You must be logged in to vote

My guess is that it has to do with your SatUnit serifier function.

structuredClone creates a clone of the input value. If the input value were serializable, its clone would also be serializable and you wouldn't NEED serify.

Your serify function should decompose SatUnit into a collection of serifiable types... meaning types that are ALREADY serializable, or other types represented in your serify options.

Look at your deserifier function. What's value.Trigraph? The assumption is that serifier put it there. If Trigraph isn't of a serifiable type, then you'll have to create another options entry to serify its type.

As far as dates are concerned, my guess is the process simply failed before it…

Replies: 1 comment 2 replies

Comment options

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

@karmaniverous
Comment options

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