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: README.md
+96Lines changed: 96 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -218,3 +218,99 @@ You can customize `useAJVForm` using the following options:
218
218
## Usage in Practice
219
219
220
220
To see `useAJVForm` in action, visit our [Yail Storybook](https://yail.programmer.network/?path=/docs/input-forms--docs). Click on `Show code` to explore practical usage examples of the hook.
221
+
222
+
223
+
Sure! Your explanation and example are already clear, but it could be slightly improved for clarity, readability, and providing additional flexibility. Here's an improved version that is concise, polished, and includes a few additional tips.
224
+
225
+
---
226
+
227
+
## Development
228
+
229
+
To continuously improve or extend this library during development, the most efficient approach is to configure a **Vite alias** within your main project. This allows you to reference the library’s source code (`index.ts`) directly, skipping the need to build or publish it repeatedly.
230
+
231
+
#### Step 1: Setup Conditional Alias in `vite.config.ts`
232
+
233
+
Update your Vite configuration to conditionally alias the library path when using your local version:
234
+
235
+
```ts
236
+
importpathfrom"path";
237
+
import { defineConfig } from"vite";
238
+
239
+
exportdefaultdefineConfig(() => {
240
+
// Check if the USE_LOCAL_AJV environment variable is true
0 commit comments