( slots: InternalSlots, children: Slots, optimized: boolean, )
| 167 | } |
| 168 | |
| 169 | const assignSlots = ( |
| 170 | slots: InternalSlots, |
| 171 | children: Slots, |
| 172 | optimized: boolean, |
| 173 | ) => { |
| 174 | for (const key in children) { |
| 175 | // #2893 |
| 176 | // when rendering the optimized slots by manually written render function, |
| 177 | // do not copy the `slots._` compiler flag so that `renderSlot` creates |
| 178 | // slot Fragment with BAIL patchFlag to force full updates |
| 179 | if (optimized || !isInternalKey(key)) { |
| 180 | slots[key] = children[key] |
| 181 | } |
| 182 | } |
| 183 | } |
| 184 | |
| 185 | export const initSlots = ( |
| 186 | instance: ComponentInternalInstance, |
no test coverage detected