Lilith
Integrating external mutable objects
Hey! I'm writing a system for FoundryVTT. It stores relevant game data in Documents, large mutable objects. It also provides Hooks, which are just callbacks, whenever anything happens or changes.
I have tested wrapping Documents in
createMutable
but Foundry itself really doesn't work with that. Is there any reasonable way of still getting fine grained reactivity in this case?
Otherwise the options I can see right now are:
- just have a big Document signal that sends out an update whenever any property is mutated
- convert the Document into an object after every change, and reconcile the difference3 replies