@vilvaathibanpb
JavaScript + React + GraphQL = 👨💻@Omio, Berlin
Creator of styled-wind, graphql-codegen (VS Code) and hql-tag
Twitter is where I share my tech updates - @vilvaathibanpb
@vilvaathibanpb
@vilvaathibanpb
@vilvaathibanpb
React Native in Offline mode
Need for Caching data
AsyncStorage - storage option
Pain in using AsyncStorage for Cache data
@vilvaathibanpb
Quick Intro for those who doesn't know
Simple persistence for all Apollo Client 2.0 cache implementations, including InMemoryCache
GraphQL Code Generator is a CLI tool that can generate TypeScript typings out of a GraphQL schema.
typescript - Generate types for TypeScript - those are usually relevant for both client-side and server-side code
typescript-operations - Generate client specific TypeScript types (query, mutation, subscription, fragment)
typescript-react-apollo - Generate TypeScript types, and React-Apollo Components
near-operation-file - Generates operation code near the source file
typescript-resolvers - generates TypeScript signature for resolve functions of your GraphQL API
Organized Cache data management with queries/mutations instead of Nested JSON
Awesome DX with autocomplete and typescript support
Shared cache across devices and platforms
Better User Experience
With Apollo GraphQL, no external library is required for state management.
The local state can be managed with queries/mutations thereby making clean and maintainable code.
The cache data is structured and works similar across devices. Hence cache/offline data can be shared across devices and platforms
React Native
Web
Native (iOS/Android)
Cache data
@vilvaathibanpb
@vilvaathibanpb
@vilvaathibanpb