Fix reactive validation for subschemas#360
Fix reactive validation for subschemas#360lynchem wants to merge 3 commits intolongshotlabs:mainfrom
Conversation
|
I've looked at this briefly but I'm not sure it's the best way. Somehow depending on the whole subschema and bubbling that up would be more ideal since that's generally how I try to handle subschema stuff. Basically let the subschema handle as much as possible. One specific change would be to use |
|
Just a friendly reminder here, I came across the same error |
…with nested schemas
|
@aldeed I fixed this bug by forcing the creation of a dependency when calling so if you ever ask for the error we reactively depend on it. Would be fairly easy to add this change to |
Fixes #359.
It recurses through the schema and adds trackers deps for each one. I wrote this debugging some of our use cases so not sure it's 100% safe. There are no tests that test if the tracker changed function gets called AFAIK, let alone for subschemas. I'm not sure how to go about writing those even. If you think the code is good and have any ideas about how to setup the tests let me know and I'll try create them.