AdvancedCustomFields / AdvancedCustomFields/acf
Is there a way to force an update of the ACF inner block templates after refreshing a parent block
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 945
- Forks
- 197
- PR merge metrics
- No merged PRs in 30d
Description
Hey @lgladdy,
I'm wondering if there is a way to force an update of the ACF inner block templates. I have a parent block and in this block I can change a preset color scheme. The colors of the inner blocks can be calculated via a function depending on the currently selected preset color scheme. However, these colors don't update when I change the parent field option.
Is there an existing JS action or another way I can trigger to force inner blocks to update?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No implementation file or test is named. Start by tracing how ACF handles parent-block field changes, inner block templates, and available JavaScript actions; the work is done when a supported mechanism reliably refreshes inner block colors after the parent preset changes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, php, wordpress
- Domain
- frontend, web-dev
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100