Fork me on GitHub
#re-frame
<
2020-03-03
>
FiVo16:03:18

Is there a way to make react aware of metadata? I have something that doesn't update because only the metadata changes.

FiVo16:03:57

actually forcing a rerender of the children might also work

p-himik16:03:31

IMO that's a pretty big smell if something depends just on the metadata. I would definitely move the metadata into the actual data to avoid any ad-hoc fixes.

FiVo17:03:57

@U2FRKM4TW ok so how would I go about changing this? I have some function deeply nested that receives data with metadata attached? based on some key in the metatdata I would also like to update the children.

FiVo17:03:08

second ? -> .

p-himik17:03:44

As I said - I would just move the metadata to the data layer. Then just query that data, that's it.