Description
Describe the bug
i tried to implement https://svelte.dev/docs/svelte#getcontext with custom elements after the svelte 4 release.
i thought it was fixed in #3422 and #8457 but it looks like its still doesnt work.
if i can help in any way let me know, because this currently blocks my implementation
if this cant be fixed it might be an idea to update https://svelte.dev/docs/custom-elements-api#caveats-and-limitations until it is fixed
Reproduction
reproduction of the actual code using svelte 4.0.5 https://stackblitz.com/edit/vitejs-vite-gk4rsr
in uc-button-group.svelte i commented out these lines
they use the svelte component directly and work without any problem :)
i made the reproduction on stackblitz because some issues with the repl i already reported in discord :)
Logs
No response
System Info
System:
OS: macOS 13.3.1
CPU: (16) x64 Intel(R) Core(TM) i9-9980HK CPU @ 2.40GHz
Memory: 1.39 GB / 32.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 18.16.0 - ~/.nvm/versions/node/v18.16.0/bin/node
Yarn: 1.22.19 - /usr/local/bin/yarn
npm: 9.5.1 - ~/.nvm/versions/node/v18.16.0/bin/npm
Browsers:
Chrome: 114.0.5735.198
Chrome Canary: 117.0.5895.0
Safari: 16.4
Severity
blocking all usage of svelte