-
-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[v2] Problem: Creating reactive display components for output #312
Comments
I can't reproduce this, for me it works. How do you define your node? My test node looks like this: import { markRaw } from "vue";
import { NodeInterface, defineNode } from "@baklavajs/core";
import ReactiveOutputTest from "./ReactiveOutputTest.vue";
class ReactiveOutputTestInterface extends NodeInterface<number> {
constructor(name: string, value: number) {
super(name, value);
this.setComponent(markRaw(ReactiveOutputTest));
}
}
export default defineNode({
type: "ReactiveOutputTest",
inputs: {
a: () => new ReactiveOutputTestInterface("Test", 3),
},
outputs: {
b: () => new ReactiveOutputTestInterface("Test", 1),
},
}); (for |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have a problem with display components in output, I have adapted the example from the documentation. When the display component is in input, it is reactive, the value of modelValue increments when I click, but not in output. How can I make it reactive and transmit the new value to the output when the display component is set to output? I have this problem with .setPort(true) or false
The text was updated successfully, but these errors were encountered: