Skip to content

Commit 961c4a7

Browse files
committed
fix: export use function from renderer
This is used when you pass a function to a ref. Without it I am seeing errors like export 'use' (imported as '_$use') was not found in '@nativescript-community/solid-js'
1 parent f3a1634 commit 961c4a7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/renderer.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,10 @@ export const {
7070
}
7171
});
7272

73+
export function use(fn, args) {
74+
return fn?.(args);
75+
}
76+
7377
// Forward Solid control flow
7478
export {
7579
For,

0 commit comments

Comments
 (0)