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

Local first architecture with Relay #2803

Open
steida opened this issue Jul 18, 2019 · 3 comments
Open

Local first architecture with Relay #2803

steida opened this issue Jul 18, 2019 · 3 comments
Labels

Comments

@steida
Copy link

steida commented Jul 18, 2019

This is more about discussion and experiences. Feel free to close it if offtopic or wrong place.

Does anyone is trying to solve the same problem? Are Relay client extensions ready? Can we leverage Relay API with local schema? Thank you.

@sibelius
Copy link
Contributor

You should look at this code https://github.com/morrys/react-relay-offline by @morrys

I think some of the strategies could be used to enable a local first architecture

client extensions is ready we just need to improve the docs (#1656)

check this setLocal helper #1656 (comment)

you need to tell relay to not garbage collect some client only data

@morrys
Copy link
Contributor

morrys commented Jul 18, 2019

a feature present in relay-relay-offline, in my opinion, very useful that I hope to be able to natively integrate in relay is the addition of expire time and ttl present to the queries in the store.

I also implemented its management in the garbage collector.

This feature in addition to the fetch_policy store_only and store-or-network will give significant added value to the relay store.

relay-tools/relay-hooks#5 in this issue there are the news that will be introduced in relay and many of these implemented in the relay-hooks library to help migrate their projects when they are will be available in the official relay version.

@stale
Copy link

stale bot commented Dec 25, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Dec 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants