pastoria 2.0.0 → 2.0.1
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/package.json +1 -1
- package/templates/router.tsx +3 -0
package/package.json
CHANGED
package/templates/router.tsx
CHANGED
|
@@ -332,6 +332,9 @@ export function router__createAppFromEntryPoint(
|
|
|
332
332
|
);
|
|
333
333
|
|
|
334
334
|
useMemo(() => {
|
|
335
|
+
// Skip during SSR - entry point is already loaded before rendering
|
|
336
|
+
if (typeof window === 'undefined') return;
|
|
337
|
+
|
|
335
338
|
const route = location.route();
|
|
336
339
|
if (route) {
|
|
337
340
|
// Cast needed for same reason as loadRouteEntryPoint - see that function's docs
|