Skip to content

Commit

Permalink
fix: disable global state version usage to avoid footgun with fresh p…
Browse files Browse the repository at this point in the history
…rops not propagationg, fixes #3728
  • Loading branch information
mweststrate committed Sep 23, 2023
1 parent 91adf79 commit e1489d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/mobx-react-lite/src/useObserver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ type ObserverAdministration = {
}

// BC
const globalStateVersionIsAvailable = typeof _getGlobalState().stateVersion !== "undefined"
const globalStateVersionIsAvailable = false // See #3728; TODO: typeof _getGlobalState().stateVersion !== "undefined"

function createReaction(adm: ObserverAdministration) {
adm.reaction = new Reaction(`observer${adm.name}`, () => {
Expand Down

0 comments on commit e1489d7

Please sign in to comment.