}
}
- render(props: any, slots: Slots) {
+ render(_: any, { props, slots }: { props: any; slots: Slots }) {
if (this.err || (this.timedOut && !this.comp)) {
const error =
this.err || new Error(`Async component timed out after ${timeout}ms.`)
beforeUpdate() {
this.updateValue()
}
- render(_: any, slots: Slots) {
+ render(_: any, { slots }: { slots: Slots }) {
return slots.default && slots.default()
}
}
}
export class Inject extends Component {
- render(props: any, slots: Slots) {
+ render(_: any, { props, slots }: { props: any; slots: Slots }) {
return slots.default && slots.default(contextStore[props.id])
}
}