Skip to content

Different context per state? #1975

Answered by Andarist
jmagaram asked this question in Q&A
Mar 9, 2021 · 1 comments · 11 replies
Discussion options

You must be logged in to vote

Is this correct? And if so, is that a technical limitation or the way we really want it to work?

I'm not familiar enough with functional languages to know how this works there but in TypeScript this ain't super trivial right now. You can actually use typestates to achieve what you want but note that this is not type-safe.

Replies: 1 comment 11 replies

Comment options

You must be logged in to vote
11 replies
@jmagaram
Comment options

@Andarist
Comment options

@jmagaram
Comment options

@Andarist
Comment options

@dearlordylord
Comment options

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