@openedx/frontend-base 1.0.0-alpha.5 → 1.0.0-alpha.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openedx/frontend-base",
3
- "version": "1.0.0-alpha.5",
3
+ "version": "1.0.0-alpha.6",
4
4
  "description": "Build tools, setup and config for frontend apps",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -127,7 +127,7 @@ export function dispatchUnmountedEvent() {
127
127
  */
128
128
  export function useElementSize() {
129
129
  // Holds a reference to the ResizeObserver
130
- const observerRef = useRef<ResizeObserver>();
130
+ const observerRef = useRef<ResizeObserver | null>(null);
131
131
 
132
132
  const [dimensions, setDimensions] = useState({ width: 0, height: 0 });
133
133
  const [offset, setOffset] = useState({ x: 0, y: 0 });