willba-component-library 0.1.63 → 0.1.64
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/components/FilterBar/FilterBar.d.ts +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.esm.js +6 -6
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +6 -6
- package/lib/index.js.map +1 -1
- package/lib/index.umd.js +6 -6
- package/lib/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/components/FilterBar/FilterBar.tsx +6 -6
package/package.json
CHANGED
|
@@ -95,14 +95,14 @@ export default function FilterBar({
|
|
|
95
95
|
const { filtersRef } = useCloseFilterSection({ handleSelectedFilter })
|
|
96
96
|
|
|
97
97
|
// Display component after fully loaded
|
|
98
|
-
|
|
99
|
-
|
|
98
|
+
const [initialRenderComplete, setInitialRenderComplete] =
|
|
99
|
+
useState<boolean>(false)
|
|
100
100
|
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
101
|
+
useEffect(() => {
|
|
102
|
+
setInitialRenderComplete(true)
|
|
103
|
+
}, [])
|
|
104
104
|
|
|
105
|
-
|
|
105
|
+
if (!initialRenderComplete) return null
|
|
106
106
|
//----/----
|
|
107
107
|
|
|
108
108
|
// Parsed data for filter section description
|