Skip to content

Conversation

@mikhailChelbaev
Copy link
Collaborator

Revise the initializers following these guidelines:

  • If a component can be configured with an initial model value, provide it with a default value.
  • If a view model includes properties crucial for a component's full appearance, avoid assigning a default model value.

For instance, a button requires the title parameter in the model to be set for it to appear complete, so no default value is provided. Conversely, a loader appears satisfactory with an initial model value, so a default value is provided.

@mikhailChelbaev mikhailChelbaev merged commit 3446130 into dev Feb 3, 2025
1 check passed
@mikhailChelbaev mikhailChelbaev deleted the refactor/inits branch February 3, 2025 15:52
@mikhailChelbaev mikhailChelbaev mentioned this pull request Feb 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants