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

apollo-cache-persist #32

Closed
rjsandman opened this issue Nov 29, 2019 · 3 comments
Closed

apollo-cache-persist #32

rjsandman opened this issue Nov 29, 2019 · 3 comments

Comments

@rjsandman
Copy link

Hi, Can this package be used with Apollo-cache-persist?

@frederikhors
Copy link
Contributor

Yes of course.

@frederikhors
Copy link
Contributor

@Sandman18 still having problems?

Can we close this?

@timhall timhall closed this as completed Nov 18, 2020
@m-dary-nur
Copy link

m-dary-nur commented May 14, 2022

hi , it seems not work with version 0.5.0 here s example

export const createApolloClient = () => {
	persistCache({
		cache,
		storage: new LocalStorageWrapper(window.localStorage),
	});
	
	const client = new ApolloClient({
	/* ... */
	});
	setClient(client);
};

createApolloClient();
<script>
  import { query } from "svelte-apollo";
  import { GET_BOOKS } from "./queries";

  const books = query(GET_BOOKS) // never called;
</script>

<div>{JSON.stringify($books)}</div>

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

4 participants