Replies: 1 comment
-
Never mind, found a away to solve my issues. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I tried this approach to create a block based document type: https://tina.io/docs/editing/blocks/
How can I get a key for each item to use in react rendering? I have nested layouts with columns, makes things a bit more complicated. Currently I hash objects to get keys, but that is obviously not safe, as soon as you have two empty items of the same type, rendering starts to get unpredictable.
While searching for a solution I stumbled over https://tina.io/docs/reference/toolkit/fields/blocks/ - where keys are mentioned. But this seems to be an outdated approach?
I also tried to create a uuid field on templates to solve this, but I can't get a custom field of type string with a hidden text input to save its contents. Value is displayed but not saved.
I think I need a bit of guidance. ;)
Beta Was this translation helpful? Give feedback.
All reactions