Support » Plugin: Gutenberg » How to use in BlockList?

  • Resolved Jo Sprague


    I’m using the editor.BlockListBlock filter to add a custom class name to blocks in the editor. But I’d like to get the value for that class name from'core/editor').getEditedPostAttribute('meta'). I’m guessing that since filters are pure functions with no side effects, using value from a store inside a filter is not possible. But I thought perhaps there is a way that I can pass the state value into the filter. My grasp of how Gutenberg works isn’t strong enough to understand how I can get a value from the store and use it in BlockList. Is this possible?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘How to use in BlockList?’ is closed to new replies.