"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("./useReduxContext.js"),o=require("../components/Context.js");let r=require("../utils/useSyncExternalStore.js").notInitialized;const s=(e,t)=>e===t;function n(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.ReactReduxContext;const u=n===o.ReactReduxContext?t.useReduxContext:()=>e.useContext(n);return function(t){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s;if("production"!==process.env.NODE_ENV){if(!t)throw new Error("You must pass a selector to useSelector");if("function"!=typeof t)throw new Error("You must pass a function as a selector to useSelector");if("function"!=typeof o)throw new Error("You must pass a function as an equality function to useSelector")}const{store:n,subscription:i,getServerState:c}=u(),a=r(i.addNestedSub,n.getState,c||n.getState,t,o);return e.useDebugValue(a),a}}const u=n();exports.createSelectorHook=n,exports.initializeUseSelector=e=>{r=e},exports.useSelector=u;
//# sourceMappingURL=useSelector.js.map
