Skip to main content

Module infer_reactive_places

Module infer_reactive_places 

Source
Expand description

Infers which Places are reactive.

Ported from TypeScript src/Inference/InferReactivePlaces.ts.

A place is reactive if it derives from any source of reactivity:

  1. Props (component parameters may change between renders)
  2. Hooks (can access state or context)
  3. use operator (can access context)
  4. Mutation with reactive operands
  5. Conditional assignment based on reactive control flow

Functionsยง

infer_reactive_places
Infer which places in a function are reactive.