Replies: 1 comment 1 reply
-
Yes, currently, the components expect the record as the read-only props. The component expects the parent to store the updated records from I believe we shouldn't change the value of props. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Imagine that we store the images with the crops we previously did. When loading that image again the
crops
comes as anempty array
and after a request it comes with the real value.The component is not being updated and stay with the first value it receive.
Maybe some
useEffect
for therecord
parameter will be enough.The crops array:
New crops are working perfect, and I can force the component to not render if the crops array is empty, but this is just a workaround because if the image really doesn't have any crop then it will never be rendered.
Beta Was this translation helpful? Give feedback.
All reactions