How to access parent block’s attributes in nested block’s save function?
You can pass data to a child via the select and dispatch hooks. So you would set up your child block with the inherited attribute and update that when the setting on the parent block changes. Parent Block Import dependencies import { dispatch, select } from “@wordpress/data”; Your edit function might look something like this: … Read more