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
I downloaded a project from Vaadin Start and enabled the accessibleDisabledButtons feature flag via Copilot. When the server starts, the logs show that the feature flag is activated, but it remains false on the client-side. On the contrary, the dashboardComponent flag appears as true on the client-side even though it's not present in vaadin-featureflags.properties.
Setting vaadin.frontend.hotdeploy=true resolves the issue, which suggests that it's related to the default bundle, which Vaadin start projects use by default.
Expected behavior
It should be possible to activate / deactivate feature flags in Vaadin start projects without setting any additional parameters.
The text was updated successfully, but these errors were encountered:
vursen
changed the title
Feature flag changes are ignored on client side when using default bundle
Feature flag changes are ignored on client side when default bundle is used
Feb 13, 2025
Looks like a bug indeed.
At least Flow should re-build the bundle in that case, as the default bundle has empty feature flags file.
Better to keep the default bundle and handle feature flags as a separate static resource, so that you don't need to rebuild a bundle. On the other hand, if a feature behind a flag needs some extra JS/TS, then Flow should rebuild the bundle.
We can agreed to always rebuild in this case, if the feature flags config is changed comparing to what is in the default/custom bundle.
UPD: to optimise this, we would need an extra flag in each feature flag that tells if a feature has only Java or JS/TS codes. Flow will re-build bundle only if it spots a new feature flag (or removing a feature flag) that corresponds to a feature that has JS/TS.
Description of the bug
I downloaded a project from Vaadin Start and enabled the
accessibleDisabledButtons
feature flag via Copilot. When the server starts, the logs show that the feature flag is activated, but it remains false on the client-side. On the contrary, thedashboardComponent
flag appears as true on the client-side even though it's not present invaadin-featureflags.properties
.Setting
vaadin.frontend.hotdeploy=true
resolves the issue, which suggests that it's related to the default bundle, which Vaadin start projects use by default.Expected behavior
It should be possible to activate / deactivate feature flags in Vaadin start projects without setting any additional parameters.
Minimal reproducible example
button-test.zip
Versions
The text was updated successfully, but these errors were encountered: