Add data-wp-key
attribute
#53062
Replies: 5 comments 5 replies
-
For reference, we needed a |
Beta Was this translation helpful? Give feedback.
-
Also implemented in Woo in this PR: woocommerce/woocommerce-blocks#10604 |
Beta Was this translation helpful? Give feedback.
-
Implemented in #53844. |
Beta Was this translation helpful? Give feedback.
-
I wonder if we should also use What do you think? |
Beta Was this translation helpful? Give feedback.
-
I'm going to close this as finished. We will reopen if necessary. |
Beta Was this translation helpful? Give feedback.
-
Sometimes we are going to need a
key
prop in some tags to improve the client-side navigation diffing, butkey
is not a valid HTML attribute. I suggest addingdata-wp-key
and then copying its value toprops.key
during the creation of the virtual nodes.Beta Was this translation helpful? Give feedback.
All reactions