File tree 1 file changed +5
-0
lines changed
jumble/public/module/charm/sandbox
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"
7
7
window . React = React
8
8
window . ReactDOM = ReactDOM
9
9
window . Babel = Babel
10
+ // if LLM forgets the prefix
10
11
window . useState = window . React . useState
11
12
window . useEffect = window . React . useEffect
12
13
window . useCallback = window . React . useCallback
13
14
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.
14
19
window . useReactiveCell = function useReactiveCell ( pathOrKey ) {
15
20
const pathArr = Array . isArray ( pathOrKey ) ? pathOrKey : [ pathOrKey ] ;
16
21
const rootKey = pathArr [ 0 ] ; // the key used for IPC
You can’t perform that action at this time.
0 commit comments