We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f3b15f2 commit 574aef2Copy full SHA for 574aef2
packages/stories-block/src/block/components/storiesInspectorControls.js
@@ -95,7 +95,7 @@ const StoriesInspectorControls = (props) => {
95
showFilters = true,
96
} = props;
97
98
- const firstUpdate = useRef(true);
+ const firstUpdateRef = useRef(true);
99
100
const taxonomies = useSelect((select) => {
101
const { getTaxonomies } = select(coreStore);
@@ -134,8 +134,8 @@ const StoriesInspectorControls = (props) => {
134
135
useEffect(() => {
136
// We want to update the fieldState for any viewType change post first render.
137
- if (firstUpdate.current) {
138
- firstUpdate.current = false;
+ if (firstUpdateRef.current) {
+ firstUpdateRef.current = false;
139
return;
140
}
141
0 commit comments