hyperfiddle-2020
hyperfiddle-2020 copied to clipboard
hfhf link table default value reaction
This has just been edited (removed :link/class :hf/new) and now there is a stale link/txfn which came from a previous default value


The actual :input receives no :value prop which appears to cause this issue

Related:
- [ ] Reaction: editing stage doesn’t react cell - same bug. Editing :link/txfn from staging area is intermittent issues which are a fn of default value state.


I expected this to be value, not defaultValue

Reagent is mucking with input value vs defaultValue:

This can be reliably reproduced here on link/path http://domains.hyperfiddle.net/:domains/
Current theory it only happens on the first edit after a hard refresh
This is after page settles, clear logs, then delete the keyword:

Root cause was unstable fiddle-src-remderer in ide/edit
Karl says, after investigation, we are using :default-value wrong. We need to be a controlled field at all times, which means implement default value logic ourselves, which impacts the datom generation and the flow of data through debounced, validator, etc.
Confirmed duplicate https://github.com/hyperfiddle/hyperfiddle/issues/894