astro icon indicating copy to clipboard operation
astro copied to clipboard

Client directive not working on namespaced JSX inside MDX

Open pomber opened this issue 3 years ago • 1 comments

What version of astro are you using?

1.0.0-rc.8

Are you using an SSR adapter? If so, which one?

None

What package manager are you using?

npm, yarn

What operating system are you using?

Linux

Describe the Bug

This is hydrated

import { Counter } from '../components/Counter.jsx';

<Counter client:load />

but this isn't

import { Foo } from '../components/Foo.jsx';

<Foo.Counter client:load />

Link to Minimal Reproducible Example

https://stackblitz.com/edit/github-stiwfz

Participation

  • [ ] I am willing to submit a pull request for this issue.

pomber avatar Aug 09 '22 09:08 pomber

Thanks, I think we forgot to handle this case in our JSX transform!

natemoo-re avatar Aug 09 '22 14:08 natemoo-re

Thanks @natemoo-re

I updated the dependencies in the example and it still doesn't work: https://stackblitz.com/edit/github-stiwfz-adqbjh?file=package.json

Am I missing something?

pomber avatar Aug 13 '22 08:08 pomber