MCPcopy Create free account
hub / github.com/microsoft/SandDance / useWindow

Function useWindow

docs/app/js/sanddance-app.js:31214–31216  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

31212 window: typeof window === "object" ? window : undefined
31213});
31214var useWindow = function() {
31215 return _react.useContext(WindowContext).window;
31216};
31217var useDocument = function() {
31218 var _a;
31219 return (_a = _react.useContext(WindowContext).window) === null || _a === void 0 ? void 0 : _a.document;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected