issues
search
isographlabs
/
isograph
The UI framework for teams that move fast — without breaking things.
MIT License
202
stars
9
forks
source link
[RFC] Normalization-time loaded fields
#79
Open
rbalicki2
opened
2 months ago
rbalicki2
commented
2 months ago
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?
T
, but instead have some arbitrary return type or something containing[T, () => void]
.Open question