-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
removed scope from config; added pageClientStarted #1
base: main
Are you sure you want to change the base?
Conversation
@@ -6,10 +6,8 @@ declare global { | |||
interface PageContext { | |||
config: { | |||
pageStarted?: EventCallable<{ params: Record<string, string>; data: unknown }>; | |||
pageClientStarted?: EventCallable<void>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you think to make universal interface with pageStarted
, pageClientStarted
, and possible createServerStarted
?
pageClientStarted?: EventCallable<void>; | |
pageClientStarted?: EventCallable<{ params: Record<string, string>; data: unknown }>; |
@@ -32,6 +32,7 @@ | |||
"node": ">=18.6.0" | |||
}, | |||
"dependencies": { | |||
"@effector/next": "^0.7.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why @effector/next
is required for vike?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is the same situation as in nextjs
we have to have 1 scope for an app and provide partial hydration of values
onClientStarted(); | ||
clientStartedRef.current = true; | ||
} | ||
}, []); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
}, []); | |
}, [onClientStarted]); |
It is required, when we can switch from page without .pageClientStarted to another with
No description provided.