Skip to content

Best way to initalize a store with data? #26

Answered by mergesort
reftonull asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @reftonull. Glad to hear you're using Boutique and seem to be able to rid yourself of Core Data.

A simple way approach to provide data for tests would be similar to how I provide data for tests, loading items in manually from a hardcoded array.

But in version 2.0 I'll be adding a new property wrapper, @StoredValue, which seems suited to the task of providing a default category for your apps. Even though 2.0 isn't yet released it's stable, I'm mostly making small additive changes and focusing on providing a lot of documentation for exactly the kinds of problems you're running into before releasing it fully. I would recommend using 2.0, the pull request for it is pretty rich with quite …

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@mergesort
Comment options

@mergesort
Comment options

@reftonull
Comment options

@mergesort
Comment options

@mergesort
Comment options

Answer selected by mergesort
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants