Open
Description
Which component is affected?
Qwik Runtime
Describe the bug
In v2, Signal returns a Proxy which are not transferable:
export default component$(() => {
const searchSignal = useSignal('');
const typesSignal = useSignal([]);
useTask$(({ track }) => {
const search = track(searchSignal);
const types = track(typesSignal);
worker.postMessage({ search, types }); // Not Working
});
return <input bind:value={searchSignal} />
})
The main problem for me are:
- There is no way to know this is a Proxy
- It's not a Proxy anymore once we change the value in the browser
- We don't have any tools to unwrap the proxy if it's signal (like
unwrapStore
for example)
Reproduction
Steps to reproduce
- In the playground open devtools
- Write something in the input
- See error message in console
System Info
-
Additional Information
No response