Skip to content

Commit

Permalink
use correct hydration id in server lazy
Browse files Browse the repository at this point in the history
  • Loading branch information
mdynnl committed Sep 23, 2024
1 parent e4b2c66 commit 2b32191
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/solid/src/server/rendering.ts
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ export function lazy<T extends Component<any>>(
const wrap: Component<ComponentProps<T>> & {
preload?: () => Promise<{ default: T }>;
} = props => {
const id = sharedConfig.context!.id.slice(0, -1);
const id = sharedConfig.context!.id;
let ref = sharedConfig.context!.lazy[id];
if (ref) p = ref;
else load(id);
Expand Down

0 comments on commit 2b32191

Please sign in to comment.