MCPcopy Create free account
hub / github.com/dataease/SQLBot / fO

Function fO

frontend/public/swagger-ui-bundle.js:57079–57099  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

57077 return hoistNonReactStatics(j, s)
57078 }
57079 }
57080 var fO = function Provider(s) {
57081 const { children: o, context: i, serverState: a, store: u } = s,
57082 _ = Re.useMemo(() => {
57083 const s = createSubscription(u)
57084 return { store: u, subscription: s, getServerState: a ? () => a : void 0 }
57085 }, [u, a]),
57086 w = Re.useMemo(() => u.getState(), [u])
57087 Vk(() => {
57088 const { subscription: s } = _
57089 return (
57090 (s.onStateChange = s.notifyNestedSubs),
57091 s.trySubscribe(),
57092 w !== u.getState() && s.notifyNestedSubs(),
57093 () => {
57094 ;(s.tryUnsubscribe(), (s.onStateChange = void 0))
57095 }
57096 )
57097 }, [_, w])
57098 const x = i || pO
57099 return Re.createElement(x.Provider, { value: _ }, o)
57100 }
57101 var mO = __webpack_require__(83488),
57102 gO = __webpack_require__.n(mO)

Callers

nothing calls this directly

Calls 2

createSubscriptionFunction · 0.85
VkFunction · 0.85

Tested by

no test coverage detected