Skip to content
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

User defined Initial State #23

Closed
stevehalliwell opened this issue Jan 4, 2023 · 0 comments · Fixed by #25
Closed

User defined Initial State #23

stevehalliwell opened this issue Jan 4, 2023 · 0 comments · Fixed by #25
Labels
enhancement New feature or request

Comments

@stevehalliwell
Copy link
Collaborator

Describe the task

Presently we use structs for the data of the store, this means it gets default values. When those are objects, they are null. This ends up needing extra handling in reducers, presenters, etc. for state containing nulls where they otherwise might not be expected.

User should not have to attempt to run an initialisation command to set state to valid before anything else runs.

@stevehalliwell stevehalliwell added the enhancement New feature or request label Jan 4, 2023
stevehalliwell pushed a commit that referenced this issue Jan 4, 2023
to be non-null at first present, without requiring custom init commands.
Add ctor to default value to Feature<T>
stevehalliwell pushed a commit that referenced this issue Jan 5, 2023
to be non-null at first present, without requiring custom init commands.
Add ctor to default value to Feature<T>
stevehalliwell pushed a commit that referenced this issue Jan 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant