milomg / reactively

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Confusion around stabilize and computed functions in 'benches/core'

ICJR opened this issue · comments

Exploring reactivity, I like the idea of using a single method throughout my project 'reactive' but I'm slightly confused by 'benches/core.js'

Is there a need for the computed function?

  • If reactive fn's do not update unless a dependency changes doesn't that make them computed's by default?
  • Would there be a downside to marking all reactive fn's as effects once they are used at least once?.

Is there a need for the signal function?

  • Can you imagine any issues running stabilize in a microtask/raf vs running after setting signals like the benchmark code?
    • Or running stabilize after the set method observer loop.

Thank you for all your hard work.