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

[RFC] Normalization-time loaded fields #79

Open
rbalicki2 opened this issue Apr 29, 2024 · 0 comments
Open

[RFC] Normalization-time loaded fields #79

rbalicki2 opened this issue Apr 29, 2024 · 0 comments

Comments

@rbalicki2
Copy link
Collaborator

  • Add the ability to make certain imperatively loadable fields load at normalization time, or to execute arbitrary code at normalization time.
  • That arbitrary code might:
    • update some other fields in the Isograph store or in an external store
    • start a subscription
  • The read out field should no longer have type T, but instead have some arbitrary return type or something containing [T, () => void].

Open question

  • Is there anything to be gained by giving the compiler special understanding of fake deferred fields, as opposed to letting the arbitrary code run?
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