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
clientOnly only supports components that are default export so it seems like use these 2 things together is currently not great developer experience. I got it to work like this.
I see that clientOnly has an options payload, and I think it would be a good idea to add an "export" variable to that options object. so it could mesh well with the existing implementation, instead of hardcoding module.default it can use module[options.export] and we can make the default value of options.export = 'default'
I saw this open issue that mentions allowing components to be beside the route files that use them when using by not exposing a default export #1882 and I think that is a fantastic solution for that and feels like the right choice.
Activity