MCPcopy Create free account
hub / github.com/MegEngine/MegFlow / useSealedState

Function useSealedState

flow-debugger/debugger-ui/src/page/topology/VisGraph.js:44–47  ·  view source on GitHub ↗

* Keeps the value the same permanently. * Useful over refs especially in instances where the function creation variant is used

(value)

Source from the content-addressed store, hash-verified

42 * Useful over refs especially in instances where the function creation variant is used
43 */
44function useSealedState(value) {
45 const [state] = useState(value);
46 return state;
47}
48/**
49 * https://github.com/crubier/react-graph-vis/commit/68bf2e27b2046d6c0bb8b334c2cf974d23443264
50 */

Callers 1

VisGraph.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected