Feature Description
In #12711, we have added useUIValue hook. Throughout the codebase, we can replace:
select( CORE_UI ).getValue() with useUIValue and
dispatch( CORE_UI ).setValue() with setValue returned by hook.
As per the AC for #12711, we should address this refactor in multiple sub-issues so we don't end up with a single, massive PR.
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
Implementation Brief
Test Coverage
QA Brief
Changelog entry
Feature Description
In #12711, we have added
useUIValuehook. Throughout the codebase, we can replace:select( CORE_UI ).getValue()withuseUIValueanddispatch( CORE_UI ).setValue()withsetValuereturned by hook.As per the AC for #12711, we should address this refactor in multiple sub-issues so we don't end up with a single, massive PR.
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
Implementation Brief
Test Coverage
QA Brief
Changelog entry