-
#4575
aa4fc3ef
- Add support for Next.js 14 and App Router. No longer support Next.js 12.Note: By default, components in the App Router are React Server Components (RSCs). Deep SSR of Lit components does not work within server components as they result in React hydration mismatch due to the presence of the
<template>
element in the RSC payload containing the serialized server component tree, and the custom element definitions will not be included with the client bundle either when imported in server component files.Make sure any Lit components you wish to use are beyond the
'use client';
boundary. These will still be server rendered for the initial page load just like they did for the Pages Router.
- Updated dependencies [
aa4fc3ef
,aa4fc3ef
]:- @lit-labs/[email protected]
- #4354
c8e1509c
- Add plugin optionaddDeclarativeShadowDomPolyfill
which, if true, will add a script to the client bundle which will apply the@webcomponents/template-shadowroot
ponyfill on the document. Note: If you were manually adding the polyfill, you can either remove your own implementation or set this option tofalse
.
- #4306
c28ebba1
- Update dependency version to refer to stable versions, rather than pre-release versions of our own packages.
-
Updated dependencies [
6b515e43
]:- @lit-labs/[email protected]
-
Updated dependencies [
23326c6b
]:- @lit-labs/[email protected]
- Updated dependencies [
7932f7dd
]:- @lit-labs/[email protected]
-
#3613
be182929
- Initial release of@lit-labs/nextjs
package.This package contains a plugin for Next.js that enables deep server rendering of Lit components.
- Updated dependencies [
b731bb5e
]:- @lit-labs/[email protected]