diff --git a/articles/flow/integrations/cdi/contexts.adoc b/articles/flow/integrations/cdi/contexts.adoc index 100eeeabbb..89ba523f58 100644 --- a/articles/flow/integrations/cdi/contexts.adoc +++ b/articles/flow/integrations/cdi/contexts.adoc @@ -281,4 +281,8 @@ Injected beans aren't preserved when they're `UIScoped`, but only when they're ` The `UI` instance itself isn't preserved, but routing components are preserved. Any bean tied to the `UI` instance with `UIScoped` is recreated. The preserved routing components are moved to the new `UI`. To preserve beans during a browser refresh, you need to use `@RouteScoped`, as shown earlier. +.Vaadin scoped bean need to be serializable +[NOTE] +Scoped bean instances are stored in the session. This means in case you persist sessions using some 3rd party tool, the beans needs to be serializable. + [discussion-id]`4AAFA7A1-CF85-42D6-A7F2-E0CB0DB70FD1`