Skip to content

Commit

Permalink
wip (#3645)
Browse files Browse the repository at this point in the history
  • Loading branch information
urugator authored Mar 5, 2023
1 parent cd18db9 commit 7acaf30
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/grumpy-seals-impress.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"mobx-react-lite": patch
---

fix FinalizationRegistry support check #3643
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,7 @@ export class TimerBasedFinalizationRegistry<T> implements FinalizationRegistryTy
}
}

export const UniversalFinalizationRegistry = FinalizationRegistry ?? TimerBasedFinalizationRegistry
export const UniversalFinalizationRegistry =
typeof FinalizationRegistry !== "undefined"
? FinalizationRegistry
: TimerBasedFinalizationRegistry

0 comments on commit 7acaf30

Please sign in to comment.