DEV Community

Lukas Gaucas
Lukas Gaucas

Posted on

Context may be reactive in Svelte if...

NOTE : In case codesanbox.com IDE would throw an error on initial load, just try to reload the IDE

...if re-invoking setContext(context_key, context_value) again with same context_key but different context_value , make sure typeof, in this case, typeof [object Object] preserved, this way you definitely can see (if you followed comments carefully) that we can have context reactive , unless I missed a part somewhere, then please correct me in the comment section below , thanks !

Top comments (0)