I would like to update the ACF field data in the Gutenberg editor in real time based on the value of other fields using the ACF javascript API. I tried this :
wp.data.dispatch('core/block-editor').updateBlockAttributes(client_id_of_my_ACF_block, {data: {field_62d95e3a62cd6: 'lorem', field_62d52df75ea5b: ['1', '2']}})