#How is a Context reactive?

3 messages · Page 1 of 1 (latest)

dusk echo
#

The tutorial states that

Using Context has the benefit of being created as part of the reactive system and managed by it

Not sure if I'm understanding this correctly. When trying to trigger reactivity, changing the context value does not seem to be re-rendering the app.

However, if the context contains reactive values like signals or stores, updating their values does trigger a re-render. Therefore, would it be more correct to state that the context is not reactive, although it may contain reactive values

golden hare
#

Yes, the context is not reactive by itself, it just sets some data on "owners" (like roots, effects, memos), more or less

dusk echo
#

Thanks @golden hare . If you could, what do you mean by setting "owners"? Is that what the tutorial considers the "reactive system" managing the context?