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
When a CustomInstantiator overrides getOrCreate(), this breaks the ComponentTracker which now starts reporting creation points as Component 'com.vaadin.starter.skeleton.MyInstantiator' at 'MyInstantiator.java' (getOrCreate LINE 15).
Expected behavior
The ComponentTracker should correctly track component creation even if custom instantiator is used.
When the instantiator is not enabled, the route correctly prints:
Component 'com.vaadin.starter.skeleton.MainView' at 'MainView.java' (<init> LINE 12)
When the custom instantiator is enabled, the route prints:
Component 'com.vaadin.starter.skeleton.MyInstantiator' at 'MyInstantiator.java' (getOrCreate LINE 15)
Online
This is not helpful especially in connection with the infamous "Can't move a node from one state tree to another. If this is intentional, first remove the node from its current state tree by calling removeFromTree." exception.
Versions
Vaadin / Flow version: 24.6.6
Java version: 17
OS version: Ubuntu
The text was updated successfully, but these errors were encountered:
Description of the bug
When a
CustomInstantiator
overridesgetOrCreate()
, this breaks theComponentTracker
which now starts reporting creation points asComponent 'com.vaadin.starter.skeleton.MyInstantiator' at 'MyInstantiator.java' (getOrCreate LINE 15)
.Expected behavior
The ComponentTracker should correctly track component creation even if custom instantiator is used.
Minimal reproducible example
(don't forget to register the instantiator via META-INF/services as documented at https://vaadin.com/docs/latest/flow/advanced/custom-instantiators ).
When the instantiator is not enabled, the route correctly prints:
When the custom instantiator is enabled, the route prints:
This is not helpful especially in connection with the infamous "Can't move a node from one state tree to another. If this is intentional, first remove the node from its current state tree by calling removeFromTree." exception.
Versions
The text was updated successfully, but these errors were encountered: