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

RFC: Add Next.js-style examples to main repo to ease getting started path #1450

Closed
veritem opened this issue Mar 12, 2021 · 3 comments
Closed
Assignees
Labels
future 🔮 An enhancement or feature proposal that will be addressed after the next release

Comments

@veritem
Copy link

veritem commented Mar 12, 2021

When someone start using a new tool can be intermediation, but looking at the example projects from the creators really saves time for new comers.

I would like to ask if possible to add example directory inside this repo that show how to integrate this library different other UI frameworks out their including best practices and real-world use cases

@veritem veritem added the future 🔮 An enhancement or feature proposal that will be addressed after the next release label Mar 12, 2021
@kitten
Copy link
Member

kitten commented Mar 12, 2021

That's a great point! I was actually thinking of creating just that, in the style of Next.js' examples as part of this proposed effort: #1427

There should be large amounts of practical examples for each use-case isolated to what someone is looking for (Next's examples are a good & ideal sample of what this may look like.

so for instance, we should have examples/with-react, examples/with-vue, but also examples/with-subscriptions and such. The only thing standing in the way being that we'll have to set up a lot of example APIs, which for simplicity's sake shouldn't live in the main repository.

@kitten kitten changed the title RFC: Example Projects inside this repo to make it easy for people to start using this library right a way RFC: Add Next.js-style examples to main repo to ease getting started path Mar 12, 2021
@veritem
Copy link
Author

veritem commented Mar 12, 2021

I don't know how you are organization works but having examples folder, I don't see anything bad with it. and If you may allow i can help setup examples of using this library

@kitten kitten self-assigned this Mar 25, 2021
@kitten
Copy link
Member

kitten commented Apr 23, 2021

First Examples

Second Examples

These can all be written in React, because they don't focus on the bindings anyway.

  • Retry on Error (retryExchange)
  • Automatic Persisted Queries (persistedFetchExchange)
  • Simple File Upload (multipartFetchExchange)
  • React Pagination with React.Fragment components
  • Graphcache with Pagination
  • Authentication with refresh (authExchange)
  • Mutations and cache updates with Graphcache
  • "Basics" React Native (queries-only)

Low Priority Examples

  • "Basics" Preact (queries-only)
  • "Basics" Vue (queries-only)
  • "Basics" Svelte (queries-only)

@kitten kitten assigned yankovalera and unassigned kitten Apr 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
future 🔮 An enhancement or feature proposal that will be addressed after the next release
Projects
None yet
Development

No branches or pull requests

3 participants