@proveanything/smartlinks 1.8.9 → 1.8.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/docs/API_SUMMARY.md +1 -1
- package/dist/docs/containers.md +8 -8
- package/docs/API_SUMMARY.md +1 -1
- package/docs/containers.md +8 -8
- package/package.json +1 -1
package/dist/docs/API_SUMMARY.md
CHANGED
package/dist/docs/containers.md
CHANGED
|
@@ -302,15 +302,15 @@ See `widgets.md` for the full `NavigationRequest` documentation and additional e
|
|
|
302
302
|
|
|
303
303
|
## Architecture
|
|
304
304
|
|
|
305
|
-
|
|
305
|
+
The framework wraps containers in a **MemoryRouter** (not HashRouter) because the parent app owns the browser's URL bar. Context is passed via props rather than URL parameters. Each container gets its own `QueryClient` to avoid cache collisions with the parent app.
|
|
306
306
|
|
|
307
307
|
```
|
|
308
308
|
Parent App (owns URL bar, provides globals)
|
|
309
|
-
└──
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
309
|
+
└── MemoryRouter ← Framework provides this
|
|
310
|
+
└── <PublicContainer> ← Container component (no Router!)
|
|
311
|
+
├── QueryClientProvider (isolated)
|
|
312
|
+
├── LanguageProvider
|
|
313
|
+
└── Routes/Route (internal navigation)
|
|
314
314
|
```
|
|
315
315
|
|
|
316
316
|
---
|
|
@@ -417,7 +417,7 @@ src/containers/
|
|
|
417
417
|
1. Create your container component in `src/containers/MyContainer.tsx`
|
|
418
418
|
2. Export it from `src/containers/index.ts`
|
|
419
419
|
3. Add it to the `CONTAINER_MANIFEST` in `src/containers/index.ts`
|
|
420
|
-
4. Ensure it
|
|
420
|
+
4. Ensure it does NOT include a Router wrapper (framework provides `MemoryRouter`)
|
|
421
421
|
5. Give it its own `QueryClient` to avoid cache collisions
|
|
422
422
|
|
|
423
423
|
---
|
|
@@ -442,7 +442,7 @@ src/containers/
|
|
|
442
442
|
| -------------------------- | ---------------------------------------- | ---------------------------------------------------- |
|
|
443
443
|
| Container doesn't render | Missing shared globals | Ensure all Shared Dependencies are on `window` |
|
|
444
444
|
| Styles don't apply | Missing `containers.css` | Load the CSS file alongside the JS bundle |
|
|
445
|
-
| Routing doesn't work |
|
|
445
|
+
| Routing doesn't work | Container includes a Router wrapper | Remove all Router wrappers (framework provides MemoryRouter) |
|
|
446
446
|
| Query cache conflicts | Sharing parent's QueryClient | Each container needs its own `QueryClient` instance |
|
|
447
447
|
| `cva.cva` runtime error | Global set to lowercase `cva` | Use uppercase `CVA` for the global name |
|
|
448
448
|
| Navigation does nothing | Using legacy string with `onNavigate` | Use structured `NavigationRequest` object instead |
|
package/docs/API_SUMMARY.md
CHANGED
package/docs/containers.md
CHANGED
|
@@ -302,15 +302,15 @@ See `widgets.md` for the full `NavigationRequest` documentation and additional e
|
|
|
302
302
|
|
|
303
303
|
## Architecture
|
|
304
304
|
|
|
305
|
-
|
|
305
|
+
The framework wraps containers in a **MemoryRouter** (not HashRouter) because the parent app owns the browser's URL bar. Context is passed via props rather than URL parameters. Each container gets its own `QueryClient` to avoid cache collisions with the parent app.
|
|
306
306
|
|
|
307
307
|
```
|
|
308
308
|
Parent App (owns URL bar, provides globals)
|
|
309
|
-
└──
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
309
|
+
└── MemoryRouter ← Framework provides this
|
|
310
|
+
└── <PublicContainer> ← Container component (no Router!)
|
|
311
|
+
├── QueryClientProvider (isolated)
|
|
312
|
+
├── LanguageProvider
|
|
313
|
+
└── Routes/Route (internal navigation)
|
|
314
314
|
```
|
|
315
315
|
|
|
316
316
|
---
|
|
@@ -417,7 +417,7 @@ src/containers/
|
|
|
417
417
|
1. Create your container component in `src/containers/MyContainer.tsx`
|
|
418
418
|
2. Export it from `src/containers/index.ts`
|
|
419
419
|
3. Add it to the `CONTAINER_MANIFEST` in `src/containers/index.ts`
|
|
420
|
-
4. Ensure it
|
|
420
|
+
4. Ensure it does NOT include a Router wrapper (framework provides `MemoryRouter`)
|
|
421
421
|
5. Give it its own `QueryClient` to avoid cache collisions
|
|
422
422
|
|
|
423
423
|
---
|
|
@@ -442,7 +442,7 @@ src/containers/
|
|
|
442
442
|
| -------------------------- | ---------------------------------------- | ---------------------------------------------------- |
|
|
443
443
|
| Container doesn't render | Missing shared globals | Ensure all Shared Dependencies are on `window` |
|
|
444
444
|
| Styles don't apply | Missing `containers.css` | Load the CSS file alongside the JS bundle |
|
|
445
|
-
| Routing doesn't work |
|
|
445
|
+
| Routing doesn't work | Container includes a Router wrapper | Remove all Router wrappers (framework provides MemoryRouter) |
|
|
446
446
|
| Query cache conflicts | Sharing parent's QueryClient | Each container needs its own `QueryClient` instance |
|
|
447
447
|
| `cva.cva` runtime error | Global set to lowercase `cva` | Use uppercase `CVA` for the global name |
|
|
448
448
|
| Navigation does nothing | Using legacy string with `onNavigate` | Use structured `NavigationRequest` object instead |
|