We hope that we can release App Connect 2 with Wappler 6, which we will start releasing in Beta soon.
The new App Connect has some API changes, it seems that you have an init method, this is also one of the new methods in App Connect components. For the init method you probably want to rename it to _init
in your component.
New methods in app connect 2:
init(node)
for initializing the component, the node is being passed. Method is called before the render method.
performUpdate(updatedProps)
is the new update method, it is called when any of the props is updated (has a new value). Only the update on the component which prop was updated is called, in previous App Connect it would call the update of all components when some data changed.
$watch(expression, callback)
allows you to watch an expression and callback gets called with the result every time the result is being updated.
Deprecated methods in app connect 2:
beforeUpdate(fields)
update(props, fields)
updated()
These are still available in the Beta, but should be replaced with the performUpdate
method.
Also not use dmx.requestUpdate
anymore, this will also become deprecated, if a prop or data value updates from a component it will trigger its update automatically and no global update is triggered.