fulcro

Book: http://book.fulcrologic.com, Community Resources: https://fulcro-community.github.io/, RAD book at http://book.fulcrologic.com/RAD.html
tony.kay 2020-12-02T01:09:22.032Z

@njustice does that mean that was your problem?

tony.kay 2020-12-02T01:22:59.032900Z

I’ve republished the book with more of the unnecessary transaction quoting removed. The book still talks about the fact that you can quote, but that it is usually not necessary.

👍 4
tony.kay 2020-12-02T01:24:55.033400Z

I actually need to update the text…it does have some misinformation inherited from 2

exit2 2020-12-02T01:27:05.034700Z

I’m on Fulcro 2, I ended up just flattening the data a bit and making the field value part of the parent form - removing the subform all together

exit2 2020-12-02T01:30:47.035300Z

Also yes the field name from the db is value lol

tony.kay 2020-12-02T01:38:08.035600Z

ok, fixed a bit more

❤️ 3
tony.kay 2020-12-02T01:40:30.035700Z

so, all you needed to do was add a refresh to the transaction (a keyword in the parent’s query)

tony.kay 2020-12-02T01:40:56.035900Z

it’s a data-driven refresh model. F3 switched to not needing that as much, but you just tell it a keyword in the parent query to get the parent to refresh

tony.kay 2020-12-02T01:41:25.036100Z

(transact! this [… :parent/key]) will do it on transactions

tony.kay 2020-12-02T01:41:53.036300Z

I really recommend moving to F3 if you can…so many nicer things there

Björn Ebbinghaus 2020-12-02T23:07:19.043600Z

Hey @tony.kay , I noticed, that some of my dynamic-query ids have a superfluous : as the first symbol, while others doesn’t. This leads to registry-key->class returning nil for these entries. Do you have an idea what is causing this? The query-ids in question are all of components that are targets in a nested dynamic router.

Björn Ebbinghaus 2020-12-02T23:36:36.044400Z

Ok. Another hint. All components that have the `:` are using hooks

Björn Ebbinghaus 2020-12-02T23:38:12.044800Z

Yes. the :queryid of components using hooks are always starting with : while “normal” components do not.

Björn Ebbinghaus 2020-12-02T23:47:17.045Z

Seems like for non-hook components the :displayName ist build with (str/join "/" [(namespace fqkw) (name fqkw)]) while for hooks it is just the key it is just str