analogjs / analog

The fullstack meta-framework for Angular. Powered by Vite and Nitro
https://analogjs.org
MIT License
2.4k stars 221 forks source link

Spike: Test out Zoneless Change Detection #1047

Open brandonroberts opened 2 months ago

brandonroberts commented 2 months ago

Which scope/s are relevant/related to the feature request?

Don't know / other

Information

This is a placeholder to test out Analog with the experimental Zoneless change detection provider.

Describe any alternatives/workarounds you're currently using

No response

I would be willing to submit a PR to fix this issue

osnoser1 commented 2 weeks ago

I have a small zoneless app with ssr and event replay actions using nx.

When I migrated to analog.js, I could see the ssr was deactivated, but running the app I get this exception:

ypeError: Cannot read properties of undefined (reading '_ejsa')
    at getJsactionData (chunk-T5GBXR7Y.js?v=4e96f082:22766:20)
    at chunk-T5GBXR7Y.js?v=4e96f082:22807:41
    at _ZoneDelegate.invoke (zone__js.js?v=4e96f082:295:158)
    at _ZoneImpl.run (zone__js.js?v=4e96f082:94:35)
    at zone__js.js?v=4e96f082:1956:30
    at _ZoneDelegate.invokeTask (zone__js.js?v=4e96f082:321:171)
    at _ZoneImpl.runTask (zone__js.js?v=4e96f082:131:37)
    at drainMicroTaskQueue (zone__js.js?v=4e96f082:476:23)
    at invokeTask (zone__js.js?v=4e96f082:395:11)
    at ZoneTask.invoke (zone__js.js?v=4e96f082:381:38)
image image

When I enabled SSR using analog, I get this exception:

image

This is just informative, maybe you have an idea of the problems we could find with a zoneless app. I'm really interested to use analog because nitro and the api routes, I'll keep digging inside analog