Skip to content

Preprocessor snapshot is triggered twice #2007

Answered by coolsoftwaretyler
phabos asked this question in Q&A
Discussion options

You must be logged in to vote

Oh, I think I understand more after reading more carefully.

The original post in that issue says:

First for typecheck second for instantiating. Both for create and applySnapshot. This is problem because transforming can be really slow.

And links to the relevant code.

I would guess, since MST typechecks in development but not production that you could get around this by turning off the type checking for your model? Or that you might need to design your preProcess functions to be idempotent, as the responses in that thread conclude.

Does that help you at all?

Replies: 1 comment 2 replies

Comment options

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

Answer selected by phabos
@phabos
Comment options

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