Skip to content

Commit

Permalink
Added missing lifecycle types
Browse files Browse the repository at this point in the history
  • Loading branch information
Havunen committed Sep 30, 2023
1 parent ebb13f2 commit 96c1ef3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/inferno/src/DOM/mounting.ts
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ export function mountFunctionalComponent(
context: ContextObject,
isSVG: boolean,
nextNode: Element | null,
lifecycle,
lifecycle: Array<() => void>,
animations: AnimationQueues,
): void {
const ref = vNode.ref;
Expand Down
2 changes: 1 addition & 1 deletion packages/inferno/src/DOM/patching.ts
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,7 @@ function createDidUpdate(
lastProps,
lastState,
snapshot,
lifecycle,
lifecycle: Array<() => void>,
): void {
lifecycle.push(() => {
instance.componentDidUpdate!(lastProps, lastState, snapshot);
Expand Down

0 comments on commit 96c1ef3

Please sign in to comment.