Closed JustFly1984 closed 2 months ago
Thanks for opening this issue! A maintainer will review it soon.
Hello @JustFly1984, thank you again. Can you please make sure to provide reproduction along with issues you report?
@tobySolutions I’ve added you to my private project. You can test there, please find an invitation from ospm in your mailbox.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs within the next 7 days.
not stale
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs within the next 7 days.
Not stale
I've provided access to my repository with Gatsby project
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs within the next 7 days.
What version of
million
are you using?3.0.3
Are you using an SSR adapter? If so, which one?
None
What package manager are you using?
yarn
What operating system are you using?
Mac
What browser are you using?
Chrome
Describe the Bug
I'm using gatsby integration and I have almost all components exported as `export const Component: ComponentType = memo(_Component)
but I've noticed a bug in one of my custom component, analyzing it I've found that it is wrapped in
<slot>
tag The only difference I've found - it wasexport default memo(Component)
I've changed export toexport const
and it fixed the bug and removed the slot tag from htmlI've went through whole app codebase and replaced default exports everywhere, except template files, cos I'm using createPages API instead of limited pages dir routing Anyway, gatsby requires template files to export component as
export default
, and src/html.tsx too. Setting disable million comments doesn't help and I see at least one slot at the top of html tree.What's the expected result?
disable slot optimization for some
export default
components, or disable it at all.Link to Minimal Reproducible Example
sorry
Participation