Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nativescript/tanstack

TanStack Query Example Usage
https://github.com/nativescript/tanstack

android angular ios nativescript tanstack-query vue

Last synced: about 1 month ago
JSON representation

TanStack Query Example Usage

Awesome Lists containing this project

README

        

**TanStack Query with NativeScript**

Android and iOS apps using [TanStack Query](https://tanstack.com/query/latest) with Angular, Solid and Vue.

- [Setup](#setup)
- [Try TanStack Query](#try-tanstack-query)
- [What is This?](#what-is-this)

## Setup

Prerequisites:
- [NativeScript Environment Setup](https://docs.nativescript.org/environment-setup.html)
- node >=20 (recommend 22.1.x)

```bash
npm run clean
```

## Try TanStack Query

```bash
npx nx run nativescript-query-ng:android
npx nx run nativescript-query-ng:ios
```

You can also try on StackBlitz: https://stackblitz.com/edit/nativescript-tanstack-angular?file=src%2Fapp%2Fitem%2Fposts.component.ts

```bash
npx nx run nativescript-query-solid:android
npx nx run nativescript-query-solid:ios
```

You can also try on StackBlitz: https://stackblitz.com/edit/nativescript-tanstack-solid?file=src%2Froutes%2Fposts.tsx

```bash
npx nx run nativescript-query-vue:android
npx nx run nativescript-query-vue:ios
```

You can also try on StackBlitz: https://stackblitz.com/edit/nativescript-tanstack-vue?file=src%2Fcomponents%2FPosts.vue

## What is This?

An Nx workspace with Angular, Solid and Vue iOS & Android apps all utilizing TanStack Query while rendering natively to each platform.

- Each app shares Resources from [here](tools/App_Resources).
- Each app's `nativescript.config.ts` configures the shared resources via the `appResourcesPath` property