You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-1
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,7 @@
1
1
# React Native - React Query - Hasura - demo app
2
2
3
3
A basic React Native app to demonstrate [React Query](https://react-query.tanstack.com/) with [GraphQL Code generator](https://www.graphql-code-generator.com/) features.
4
+
4
5
The GraphQL API is powered by [Hasura](https://hasura.io).
5
6
6
7
## React Native EU Conference 2021 Talk
@@ -9,6 +10,8 @@ The GraphQL API is powered by [Hasura](https://hasura.io).
9
10
10
11
The app folders structure has been updated in this repo compared to the version demonstrated in the talk.
11
12
13
+
GraphQL subscription support example has been added.
14
+
12
15
## Full Stack
13
16
### Front-end
14
17
- Expo
@@ -133,11 +136,13 @@ To generate types and operations with GraphQL code generator (Hasura must be up)
133
136
-[X] React Suspense and Error boundaries support
134
137
-[X] FlatList with infinite queries
135
138
-[X] Cache persistence in the Async storage
139
+
-[X] GraphQL subscriptions
136
140
137
141
## Branches
138
142
-`main` Demo app with infinite list, async storage persistor and optimistic updates
139
143
-`simple-list` Demo app using a simple movies FlatList
140
144
-`movies-list-optimistic-update` The movies list is optimistically updated after a movie mutation
145
+
-`graphql-subscriptions` the movie details screen is updated with GraphQL subscriptions
141
146
142
147
## Notes
143
148
- This app uses many auto-refetch and cache invalidation possibilities but you may have to select the ones you really need for your app in production.
@@ -147,4 +152,4 @@ To generate types and operations with GraphQL code generator (Hasura must be up)
147
152
- No GraphQL API authentication and authorization have been implemented in this demo.
148
153
- React Native Web support is experimental.
149
154
- Console logs are verbose for demo purposes.
150
-
-GraphQL subscriptions are not demonstrated in this app but[React Query can be used with web sockets](https://tkdodo.eu/blog/using-web-sockets-with-react-query).
155
+
-More info about WebSocket support in this article[React Query can be used with web sockets](https://tkdodo.eu/blog/using-web-sockets-with-react-query).
0 commit comments