Skip to content

Commit

Permalink
chore: work around TS complaining
Browse files Browse the repository at this point in the history
  • Loading branch information
marvinhagemeister committed Jul 6, 2024
1 parent 4e53438 commit 7bb245a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/diff/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -563,6 +563,7 @@ export function applyRef(ref, value, vnode) {
if (typeof ref == 'function') {
let hasRefUnmount = typeof ref._unmount == 'function';
if (hasRefUnmount) {
// @ts-ignore TS doesn't like moving narrowing checks into variables
ref._unmount();
}

Expand Down

0 comments on commit 7bb245a

Please sign in to comment.