Skip to content

Commit

Permalink
Update state_management.md
Browse files Browse the repository at this point in the history
  • Loading branch information
wwwillchen authored Jul 21, 2024
1 parent 86e927c commit 719e3e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/guides/state_management.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ You **MUST** use immutable default values _or_ use dataclasses `field` initializ
a: list[str] = field(default_factory=lambda: ["abc"])
```

???+ success "Good example of no default value"
???+ success "Good: no default value"

If you want a default of an empty list, you can just not define a default value and Mesop will automatically define an empty list default value.

Expand Down

0 comments on commit 719e3e0

Please sign in to comment.