├── .circleci └── config.yml ├── .editorconfig ├── .eslintrc ├── .gitattributes ├── .gitignore ├── .prettierrc.js ├── CONTRIBUTING.md ├── LICENSE ├── README.md ├── babel.config.js ├── commitlint.config.js ├── nandorojo-fuego.podspec ├── package.json ├── src ├── __tests__ │ └── index.test.tsx ├── classes │ ├── Cache.ts │ └── Fuego.ts ├── context │ └── index.tsx ├── helpers │ ├── doc-date-parser.ts │ ├── empty.ts │ └── is-dev.ts ├── hooks │ ├── index.ts │ ├── static-mutations.ts │ ├── use-swr-collection-group.ts │ ├── use-swr-collection.ts │ └── use-swr-document.ts ├── index.tsx └── types │ ├── Document.ts │ └── index.ts ├── tsconfig.json └── yarn.lock /.circleci/config.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nandorojo/swr-firestore/HEAD/.circleci/config.yml -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nandorojo/swr-firestore/HEAD/.editorconfig -------------------------------------------------------------------------------- /.eslintrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nandorojo/swr-firestore/HEAD/.eslintrc -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | *.pbxproj -text 2 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nandorojo/swr-firestore/HEAD/.gitignore -------------------------------------------------------------------------------- /.prettierrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nandorojo/swr-firestore/HEAD/.prettierrc.js -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nandorojo/swr-firestore/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nandorojo/swr-firestore/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nandorojo/swr-firestore/HEAD/README.md -------------------------------------------------------------------------------- /babel.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nandorojo/swr-firestore/HEAD/babel.config.js -------------------------------------------------------------------------------- /commitlint.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | extends: ['@commitlint/config-conventional'], 3 | }; 4 | -------------------------------------------------------------------------------- /nandorojo-fuego.podspec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nandorojo/swr-firestore/HEAD/nandorojo-fuego.podspec -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nandorojo/swr-firestore/HEAD/package.json -------------------------------------------------------------------------------- /src/__tests__/index.test.tsx: -------------------------------------------------------------------------------- 1 | it.todo('write a test'); 2 | -------------------------------------------------------------------------------- /src/classes/Cache.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nandorojo/swr-firestore/HEAD/src/classes/Cache.ts -------------------------------------------------------------------------------- /src/classes/Fuego.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nandorojo/swr-firestore/HEAD/src/classes/Fuego.ts -------------------------------------------------------------------------------- /src/context/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nandorojo/swr-firestore/HEAD/src/context/index.tsx -------------------------------------------------------------------------------- /src/helpers/doc-date-parser.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nandorojo/swr-firestore/HEAD/src/helpers/doc-date-parser.ts -------------------------------------------------------------------------------- /src/helpers/empty.ts: -------------------------------------------------------------------------------- 1 | export const empty = { 2 | object: {}, 3 | array: [], 4 | } 5 | -------------------------------------------------------------------------------- /src/helpers/is-dev.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nandorojo/swr-firestore/HEAD/src/helpers/is-dev.ts -------------------------------------------------------------------------------- /src/hooks/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nandorojo/swr-firestore/HEAD/src/hooks/index.ts -------------------------------------------------------------------------------- /src/hooks/static-mutations.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nandorojo/swr-firestore/HEAD/src/hooks/static-mutations.ts -------------------------------------------------------------------------------- /src/hooks/use-swr-collection-group.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nandorojo/swr-firestore/HEAD/src/hooks/use-swr-collection-group.ts -------------------------------------------------------------------------------- /src/hooks/use-swr-collection.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nandorojo/swr-firestore/HEAD/src/hooks/use-swr-collection.ts -------------------------------------------------------------------------------- /src/hooks/use-swr-document.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nandorojo/swr-firestore/HEAD/src/hooks/use-swr-document.ts -------------------------------------------------------------------------------- /src/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nandorojo/swr-firestore/HEAD/src/index.tsx -------------------------------------------------------------------------------- /src/types/Document.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nandorojo/swr-firestore/HEAD/src/types/Document.ts -------------------------------------------------------------------------------- /src/types/index.ts: -------------------------------------------------------------------------------- 1 | export * from './Document' 2 | -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nandorojo/swr-firestore/HEAD/tsconfig.json -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nandorojo/swr-firestore/HEAD/yarn.lock --------------------------------------------------------------------------------