MCPcopy Create free account
hub / github.com/pgadmin-org/pgadmin4 / updateSize

Function updateSize

web/pgadmin/static/js/custom_hooks.js:228–230  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

226 const [size, setSize] = useState([999999, 999999]);
227 useLayoutEffect(() => {
228 function updateSize() {
229 setSize([window.innerWidth, window.innerHeight]);
230 }
231 window.addEventListener('resize', updateSize);
232 updateSize();
233 return () => window.removeEventListener('resize', updateSize);

Callers 1

useWindowSizeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected