-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Regression: preact useId() does not work since @astrojs/preact@3.1.0 #9733
Comments
I place here the results of my brief research. If I just change this (back to before #9524) astro/packages/integrations/preact/src/server.ts Lines 81 to 94 in bcc504d
to this and run it, it works correctly. astro/packages/integrations/preact/src/server.ts Lines 75 to 90 in a171c22
if I add catch, errors are not displayed on the client side in dev mode. await prepass(vNode).catch((err) => {}); But after do HMR on the client side then reload, error displayed on the client side. this error is from try {
const html = render(vNode);
return { attrs, html };
} catch (err) {
console.log(err);
} and error messages is like this.
I've been wanting to contribute about this isssue, but I feel like |
Thanks for looking into it @ktym4a! I think you're correct that |
Thanks for opening this as an issue in the preact-ssr-prepass repo, too! preactjs/preact-ssr-prepass#60 |
This was just fixed & is available in |
* refact(blog): stop using git submodules, and instead integrate files directly * feat: implement new blog layout * refact: move away from Tailwind, upgrade packages, and work on a kitchensink Currently this build is incomplete, as I am ironing out bugs in the code after package upgrades * fix(deps): downgrade Preact-integration to avoid regression See withastro/astro#9733 * chore: update kitchensink to better reflect MDX capabilities * style: avoid hyphenating words in new design * feat: add Expressive Code support to dark mode switcher * refact: remove Tailwind code from BaseLayout and BlogPostLayout * refact: translate the navbar into non-Tailwind * feat(blog): implement remainder of kitchensink elements in new typography styling * style: change to Overpass font with slightly increased lineheight * style: slightly rework figure and image styles in blog articles * feat: add image to cookie compliance post * feat: rewrite the cookie compliance blog post for the new layout * style: move header image of cookie compliance up a bit * fix: minor rewordings for cookie compliance * feat: add diagrams to cookie compliance post * feat: inline SVG diagrams for light/dark mode support * feat: minor wording updates to cookie compliance blog * refact: move styles around for slightly better decoupling * refact: minor moving around of styles between layouts * feat: fix blog page after moving away from Tailwind * refact: update hero on landing page after moving away from Tailwind * feat: reorder cookie compliance blog post a bit * fix: don't scroll if browser is about to restore scroll position * refact: rewrite landing page to not use Tailwind * feat: add change and publish date to blog posts
Astro Info
If this issue only occurs in one browser, which browser is a problem?
Chrome (others I guess too)
Describe the Bug
Using
useId()
throws the following error:What's the expected result?
Properly working
useId
as in ~3.0.0Link to Minimal Reproducible Example
https://stackblitz.com/edit/withastro-astro-vob6us
Participation
The text was updated successfully, but these errors were encountered: