Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Derived Data ideas #117

Open
NullVoxPopuli opened this issue Nov 1, 2023 · 1 comment
Open

Derived Data ideas #117

NullVoxPopuli opened this issue Nov 1, 2023 · 1 comment

Comments

@NullVoxPopuli
Copy link
Owner

NullVoxPopuli commented Nov 1, 2023

  • intro:
    • problems of not deriving data
      • extra renders (less performant apps)
      • This screenshot from Apple:
        • image
        • our rectangles should not be less performant than video
          • (tho, the stats here could have been caused by the stupid amount of Analytics and Adware folks put on the web)
    • what is "root state"
  • use getters to derive data
  • use functions to delay data "entanglement"
    • getters are functions
    • what is "entanglement"?
  • technique: extract class
    • idea?: compare to custom react hook
  • reminders
    • effects / useEffect / etc are bad (usually, not always (tho rarely good))
    • did-update/did-insert bad

Overall goals:

  • talk about this generally, applies to all frameworks and reactive systems (except rx.js and other observable focused things which rely on extra renders / wild-west non-performant rendering)
  • have examples in React, Signals, Svelte Runes, and Ember (it's all the same)
  • have specific sections for each framework calling out specific things to avoid
    • react: useEffect, useLayoutEffect
    • Signals: createEffect
    • Svelte: onMount
    • Ember: did-update, did-insert
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant