New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not working with next 13 app directory. #297
Comments
Facing same issue |
Lets write about it in nextjs repo |
Yes. please comment the issue link. I will comment on it. |
@wdcs-kushaltanna are you checked it in canary release of next? |
Signals 1.3.1 repro |
Any updates? |
Seems related to remix-run/remix#4164 |
seems the solution for now is to use |
I think in near future babel transform will solve this issue |
Important Note@preact/signals, @preact/signals-react. @preact/signals-core, All of these libraries use client-side rendering. So, The App router won't be an approach to use such a feature. I suggest using the Page Router if anyone wants to use the Preact packages. Yes, you can convert the components into client components. But it'll just increase the codebase. @preact/signals-react works just fine with the Next.js 13Steps to Verify:
import { signal } from '@preact/signals-react';
export const welcomeText = signal('Awesome!');
Proof of Work: https://github.com/malinjr07/preact-next |
This is incorrect, you can use any RTS implementation to generate markup on a server. None of these packages are limited to browser environments. |
As mentioned before, new babel transform (or other integrations I'm working on documenting) should increase ecosystem capability once we move away from monkey-patching React. Still working on the transform. |
Do you think that Signals should then work with Next.js > 14 without any round trips? |
I've tried to integrate the babel plugin with next. But had problems with some new next.js features, since it uses swc for bundling now. |
The new 2.0.0 version of @preact/signals-react provides a |
@JonAbrams , do you use it like this? Can you provide a minimal example, please? |
I've implemented a plugin for SWC, will provide more info soon. It's working with next.js |
I've implemented swc plugin how to use |
@XantreDev I don't think it is compatible with latest Nextjs |
@bacharSalleh I fixed it, it will be released soon (probably today). XantreDev/preact-signals#99 |
@bacharSalleh version |
The text was updated successfully, but these errors were encountered: