Has anyone tried creating a custom store using registerStore
, and reading the store data throughout the block?
I have my block’s edit function returning two main components. One for the block content, and the other for the InspectorControls
. The latter is responsible for displaying all the settings that my block provides.
Iām trying to get the changes made to the InspectorControls
settings reflected inside the block content. However the problem appears to be that any child component of InspectorControls
is not able to push state changes to my block content component.
Is there something special I need to do to make this configuration work? Am I using registerStore
the wrong way?
I should note that Iām using function components and not classes, if that matters at all.
-
This topic was modified 5 years ago by
arobbins.
-
This topic was modified 5 years ago by
arobbins.