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

I want a way to declare default state properties #4

Closed
ToshB opened this issue Nov 20, 2015 · 2 comments
Closed

I want a way to declare default state properties #4

ToshB opened this issue Nov 20, 2015 · 2 comments

Comments

@ToshB
Copy link
Collaborator

ToshB commented Nov 20, 2015

So I can initialize empty arrays and maps that aren't passed in from outside.

@cjohansen
Copy link
Owner

Is this not enough?

const app = createApp({state: {defult: [], all: [], the: [], things: []}});

@ToshB
Copy link
Collaborator Author

ToshB commented Dec 6, 2015

Yeah, i guess I should do it that way. :)

@ToshB ToshB closed this as completed Dec 6, 2015
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

No branches or pull requests

2 participants