Skip to content

Any idea why a default argument might be undefined? #473

Answered by maccman
maccman asked this question in Q&A
Discussion options

You must be logged in to vote

I've got a reproduction of the issue here:

https://stackblitz.com/edit/typescript-ccdhgu?file=index.ts

It seems that when using applySnapshot, if you don't pass in all the properties then they get set to undefined.

Replies: 3 comments 11 replies

Comment options

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

@maccman
Comment options

Comment options

You must be logged in to vote
4 replies
@xaviergonz
Comment options

@maccman
Comment options

@maccman
Comment options

@maccman
Comment options

Comment options

You must be logged in to vote
5 replies
@xaviergonz
Comment options

@xaviergonz
Comment options

@xaviergonz
Comment options

@xaviergonz
Comment options

@maccman
Comment options

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