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
It's common that components will need to be used consistently across a product many times and instead of having to configure
component properties/functionality multiple times, it would be better to configure this once via flags before the library loads to
ensure that they operate with different default values and interactions across the lifetime of the application.
We could potentially implement this as just a global configuration store on window with keys for specific components that required and discover those default at runtime.
Affected components
All.
Benefits
Allow for developers to set common defaults once instead of having to set them everywhere they are used.
Globally turn on/off features such as ripples (any JavaScript-based functionality basically).
Caveats
I'm not necessarily a fan of utilizing window for this but may be our only good option
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Proposal
It's common that components will need to be used consistently across a product many times and instead of having to configure
component properties/functionality multiple times, it would be better to configure this once via flags before the library loads to
ensure that they operate with different default values and interactions across the lifetime of the application.
We could potentially implement this as just a global configuration store on
window
with keys for specific components that required and discover those default at runtime.Affected components
All.
Benefits
Caveats
window
for this but may be our only good optionBeta Was this translation helpful? Give feedback.
All reactions