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
If the method receives `JsonValue` as an argument, it cannot be annotated with `ClientCallable` because of compatibility issues. `LegacyClientCallable` should be used instead.
131
+
132
+
To use `LegacyClientCallable`, you must use instrumentation. This can be done via `JsonMigration.instrumentClass` or by using `InstrumentedRoute` / `InstrumentationViewInitializer`.
133
+
134
+
**Note:** Instrumentation is a complex mechanism. While it might warrant a rewrite of the affected code, it is offered here to preserve compatibility with existing implementations.
135
+
136
+
```java
137
+
@InstrumentedRoute("legacy-view")
138
+
publicclassViewWithElementalCallablesextendsDiv {
139
+
@LegacyClientCallable
140
+
publicvoidreceiveJson(JsonValuejson) {
141
+
// ...
142
+
}
143
+
}
144
+
145
+
// Register via META-INF/services/com.vaadin.flow.server.VaadinServiceInitListener
0 commit comments