-
Notifications
You must be signed in to change notification settings - Fork 161
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
AppShellSettings.getUi returns null #12678
Comments
Without deeper knowledge on the AppShellSettings feature I noted that there is in use the error message:
for many methods which would sound like getUI will not return a UI in a early state if not using the v14 bootstrapping. Fusion/Hilla team should perhaps have a look at this though. |
True, this is by design, As mentioned, works differently when As the message suggests, using See #6939 |
Can we remove it then if it does not work by default? |
We would still need something for the non-default cases that need it. Maybe just deprecating? |
Description of the bug
When I implement
AppShellConfigurator
and override theconfigurePage
method I expect to be able to use the providedgetUi()
method onAppShellSettings
to get the target UI instance, like the javadoc says. However, callinggetUi()
returns anOptional
which has anull
value.Expected behavior
getUi
should return the UI instance so I for instance can configure push parameters.Minimal reproducible example
Versions
Vaadin: 22.0.2
Flow: 9.0.2
Java: Homebrew 11.0.12
OS: aarch64 Mac OS X 12.0.1
Browser: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.93 Safari/537.36
The text was updated successfully, but these errors were encountered: