QwikDev / qwik

Instant-loading web apps, without effort
https://qwik.dev
MIT License
20.84k stars 1.31k forks source link

[🐞] Issue with serializing dates with { deep: true } #2889

Closed ulic75 closed 1 year ago

ulic75 commented 1 year ago

Which component is affected?

Qwik Runtime

Describe the bug

I have a store that is a complex object that has properties with are of type Date, when I try to manipulate the object in useTask$ I receive an error Target must be a serializable object

Reproduction

https://stackblitz.com/edit/qwik-starter-ugs6ea?file=src/routes/index.tsx

Steps to reproduce

Removing the .filter()

System Info

System:
    OS: Linux 5.0 undefined
    CPU: (8) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
    Memory: 0 Bytes / 0 Bytes
    Shell: 1.0 - /bin/jsh
  Binaries:
    Node: 16.14.2 - /usr/local/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 7.17.0 - /usr/local/bin/npm
  npmPackages:
    @builder.io/qwik: 0.17.5 => 0.17.5 
    @builder.io/qwik-city: 0.1.0 => 0.1.0 
    undici: ^5.16.0 => 5.16.0 
    vite: ^4.0.4 => 4.0.4

Additional Information

See Manu's comment

stackblitz[bot] commented 1 year ago

Fix this issue in StackBlitz Codeflow Start a new pull request in StackBlitz Codeflow.