We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 31ba069 commit 656a45dCopy full SHA for 656a45d
packages/components/src/slot-fill/bubbles-virtually/slot-fill-provider.tsx
@@ -28,17 +28,14 @@ function createSlotRegistry(): SlotFillBubblesVirtuallyContext {
28
ref,
29
fillProps
30
) => {
31
- const slot = slots.get( name ) || {
32
- ref: undefined,
33
- fillProps: undefined,
34
- };
+ const slot = slots.get( name );
35
36
slots.set(
37
name,
38
valRef( {
39
...slot,
40
- ref: ref || slot.ref,
41
- fillProps: fillProps || slot.fillProps || {},
+ ref: ref || slot?.ref,
+ fillProps: fillProps || slot?.fillProps || {},
42
} )
43
);
44
};
0 commit comments