You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: apps/example-dapp/README.md
+12-7Lines changed: 12 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,7 @@ A modern Solana application demonstrating the Grill toolkit's capabilities for e
5
5
## Overview
6
6
7
7
This example showcases how to build a Solana dApp using:
8
+
8
9
-**Grill** - React provider for automatic account batching with DataLoader
9
10
-**Gill** - Modern Solana client library
10
11
-**React Query** - Powerful data fetching and caching
@@ -22,6 +23,7 @@ This example showcases how to build a Solana dApp using:
22
23
## Getting Started
23
24
24
25
### Prerequisites
26
+
25
27
-[Bun](https://bun.sh) v1.2.19 or higher
26
28
- Node.js 18+ (for compatibility)
27
29
@@ -57,10 +59,13 @@ QueryClientProvider // React Query for caching
57
59
### Key Components
58
60
59
61
#### GrillProvider
62
+
60
63
Creates a DataLoader instance for batching account fetches. When multiple components request account data simultaneously, these requests are automatically batched into efficient RPC calls.
61
64
62
65
#### SimpleDashboard
66
+
63
67
Demonstrates core functionality:
68
+
64
69
- Wallet connection and balance display
65
70
- Account data fetching with automatic batching
66
71
- Direct RPC calls using the gill client
@@ -76,10 +81,10 @@ import { useAccount } from "@macalinao/grill";
76
81
function MyComponent() {
77
82
// Automatically batched with other account requests
Copy file name to clipboardExpand all lines: packages/dataloader-es/README.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -79,10 +79,10 @@ Creates a new DataLoader instance.
79
79
-`clearAll()`: Clear all cached values
80
80
-`prime(key, value)`: Prime the cache with a specific key/value pair
81
81
82
-
## License
83
-
84
-
This package is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.
85
-
86
82
## Credits
87
83
88
84
This is a TypeScript port of Facebook's [DataLoader](https://github.com/graphql/dataloader). The original implementation and API design are credited to the GraphQL Foundation and Facebook.
85
+
86
+
## License
87
+
88
+
Copyright (c) 2025 Ian Macalinao. Licensed under the MIT License.
0 commit comments