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
I think this is a bug — we should probably run setup in SSR mode. It might cause some confusion if people are using setup to e.g. wrap client-side component methods... anyone have ideas for how we could mitigate that?
I'm going to close this as it's fixed in v3. There's no longer a setup hook — instead, a component can have named module-level exports, so it'd be done like this:
Example that does work when rendered client-side, but not on the server ("Hello, undefined!"):
Perhaps there's a reason static properties are ignored for SSR, or maybe I'm just missing something obvious.
The text was updated successfully, but these errors were encountered: