Add component parameter support and fix JS runtime
- Emit function parameters in component signature - JS runtime passes props as positional arguments - Remove incorrect return value handling (components call js_set_root internally) - Enables: def Tabs(orientation=0) - All tests passing (30/30)
This commit is contained in:
1 parent
41474aceda
commit
cdddbf675a
5 files changed
+12
-7
No files matched your search
@@ -277,12 +277,8 @@ class RitzLoader {
|
||||
}
|
||||
|
||||
// Pass props as positional arguments
|
||||
// Components now RETURN the root element ID instead of calling js_set_root
|
||||
const propValues = Object.values(props);
|
||||
const rootElementId = renderFn(...propValues);
|
||||
|
||||
// Mount the returned element to the DOM
|
||||
runtime.js_set_root(rootElementId);
|
||||
renderFn(...propValues);
|
||||
|
||||
// Update signals
|
||||
runtime.updateSignals();
|
||||
|
||||
Reference in new issue
Block a user