JavaScript for WordPress Forums Gutenberg Development Accessing registerStore data within block

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #133941
    arobbins
    Participant

    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 6 months, 2 weeks ago by arobbins.
    • This topic was modified 6 months, 2 weeks ago by arobbins.
    #133958
    arobbins
    Participant

    Figured it out

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.