File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
jumble/public/module/charm/sandbox Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -7,10 +7,15 @@ import * as Babel from "https://esm.sh/@babel/standalone"
77window . React = React
88window . ReactDOM = ReactDOM
99window . Babel = Babel
10+ // if LLM forgets the prefix
1011window . useState = window . React . useState
1112window . useEffect = window . React . useEffect
1213window . useCallback = window . React . useCallback
1314
15+ // bf: this got considerably more complicated when supporting key paths
16+ // but that's because the iframe RPC doesn't support it, so we're emulating it internally
17+ // we should revisit this, it's conceptually simple but I'm not quite sure what the solution looks like
18+ // iframe-ctx.ts is a better place to solve the problem.
1419window . useReactiveCell = function useReactiveCell ( pathOrKey ) {
1520 const pathArr = Array . isArray ( pathOrKey ) ? pathOrKey : [ pathOrKey ] ;
1621 const rootKey = pathArr [ 0 ] ; // the key used for IPC
You can’t perform that action at this time.
0 commit comments