Hello colleagues.
I need some help, advise or idea.
i'm creating gutenberg's block as a plugin and encountered problem with persisting saving changed data in array. my array is array of objects defined as this.
API version 3. my save function returns null, as i was planning to use render.php for dynamic SSR.
in edit function/component i receive my default socials.
so for user in editor popup is shown and he can change link for social network.
i save new array data with setAttributes() after .map() and receiving new array.
array in memory is changed and visually rendering works fine (if link is empty, icon desepears on non popup markup).
blue wordpress button is enabled and it is possible to save changes.
BUT
saving triggers POST request, but data from array is never added to payload,
i have other more simple text fields, and if i change them, they are added to payload.
i don't understand what should be done to array added to request.
of course i can use Serialization and save as string, but if we have array type than it should be possible to save it. also i remeber that on api version 2 it was possible to save array data.
i've not found any useful information here:
https://developer.wordpress.org/block-editor/reference-guides/block-api/block-attributes/
https://developer.wordpress.org/news/2023/09/14/understanding-block-attributes/
except that source:query may be used. but it retrieves data from markup.
i think array data should be described.
