You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At the moment, generated scene components can't have props. This means that all external state must be passed into the scene through React context, then unpacked and exposed as outputs by BLoC components that are placed at the root of the scene node tree.
Instead, it should be possible to declare scene inputs inside of a scene. Scene inputs are serialized and stored inside the scene.json file, like this:
For the production scene.tsx code, the scene input values can be provided by the user when the scene component is rendered. Inside the stage, that doesn't work. Instead, the user must be able to assign values to the scene inputs through the editor UI. The editor UI changes are out of scope of this issue, and will be covered in a separate issue. But this issue needs to lay the foundation by implementing a mechanism where the stage runtime evaluates Expressions and passes the values to the scene inputs. The expressions are persisted in the stageValue key of scene.json.
The text was updated successfully, but these errors were encountered:
At the moment, generated scene components can't have props. This means that all external state must be passed into the scene through React context, then unpacked and exposed as outputs by BLoC components that are placed at the root of the scene node tree.
Instead, it should be possible to declare scene inputs inside of a scene. Scene inputs are serialized and stored inside the
scene.json
file, like this:The generated
scene.tsx
file will contain the following code:For the production
scene.tsx
code, the scene input values can be provided by the user when the scene component is rendered. Inside the stage, that doesn't work. Instead, the user must be able to assign values to the scene inputs through the editor UI. The editor UI changes are out of scope of this issue, and will be covered in a separate issue. But this issue needs to lay the foundation by implementing a mechanism where the stage runtime evaluatesExpression
s and passes the values to the scene inputs. The expressions are persisted in thestageValue
key ofscene.json
.The text was updated successfully, but these errors were encountered: