Skip to content

Snapshot validation #1940

Answered by EmilTholin
KislyakovDS asked this question in Q&A
Jul 27, 2022 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Hi @KislyakovDS!

The dispatcher option isn't really a validator, but rather a function to help determine what type of model the snapshot actually represents. I don't think you will be able to skip this if you have a union with two custom models.

You could e.g. do what the Ignite boilerplate does and try to instantiate a model in a try/catch, and have some fallback behavior if an error is thrown, but again I don't think this will help with determining the type of the union.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@KislyakovDS
Comment options

Answer selected by KislyakovDS
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