Installation
Get started with Qortex
Install qortex using your preferred package manager and set up your project.
Choose Your Package
Install qortex-core OR qortex-react - not both! qortex-react includes all core APIs.
Install qortex using your preferred package manager. Choose the package that fits your needs:
For React Projects
If you're using React, install qortex-react (includes all core APIs):
For React Projects
# npmnpm install qortex-react# yarnyarn add qortex-react# pnpmpnpm add qortex-react
For Non-React Projects
If you're using vanilla JS, Vue, or other frameworks, install qortex-core:
For Non-React Projects
# npmnpm install qortex-core# yarnyarn add qortex-core# pnpmpnpm add qortex-core
Import Examples
How to import from each package:
Import Examples
// React users - everything from qortex-reactimport { useQuery, useQueryData, registerFetcher, fetchQuery } from 'qortex-react';// Core-only users - core APIs from qortex-coreimport { registerFetcher, fetchQuery } from 'qortex-core';// Persister (subpackage) - for both React and core usersimport { createPersister } from 'qortex-core/persister'; // or 'qortex-react/persister'