Authentication & Setup
1. Setup and Configure Axios
The package requires Axios to manage API calls. Install Axios ("axios": "^1.7.4"
) and configure it:
Note: Axios is not bundled to reduce package size.
Example API Call
Important: Only imports from
@xborglabs/ui-shared
are SSR-compatible.
2. Configure TanStack Query Provider
To use abstracted hooks, link your API configuration with the apiContext
:
Last updated