Skip to content

Flesh out docs around cache setup#1312

Merged
designatednerd merged 6 commits intomainfrom
improve/docs
Jul 15, 2020
Merged

Flesh out docs around cache setup#1312
designatednerd merged 6 commits intomainfrom
improve/docs

Conversation

@designatednerd
Copy link
Copy Markdown
Contributor

This should address #1243. I also added a playground page as part of the Xcode 12 playground in #1280, but that won't get merged until Xcode 12 goes final. This documentation should help significantly in the meantime.

Comment thread docs/source/caching.mdx

You can then set up a file URL for your `SQLite` file, use that file URL to instantiate a SQLite cache, and then use that SQLite cache to instantiate an `ApolloStore`, which you then pass into `ApolloClient`'s initializer:

```swift:title=Client%20Setup
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh nice, does this %20 thing work? Need to keep this in mind 🤔

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, found that hack a couple weeks ago:
Screen Shot 2020-07-14 at 6 43 12 PM

@designatednerd designatednerd merged commit f13226f into main Jul 15, 2020
@designatednerd designatednerd deleted the improve/docs branch July 15, 2020 19:59
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.

3 participants