github mobxjs/mobx mobx-react@10.0.1

3 hours ago

Patch Changes

  • ec1b708026c1578e1c1f6c7bd90be18b26f7ce85 #4695 Thanks @gesposito! - perf: evaluate NODE_ENV once at module scope in the env-agnostic esm bundles (dist/<pkg>.esm.js and dist/<pkg>.mjs) instead of at every __DEV__ call site. process.env is an exotic object in Node, so each check performed a real environment lookup on hot paths; consumers that execute these files as-is (Node ESM, vitest, SSR) see roughly 10x faster observable writes in dev mode. All env-set artifacts and bundler output are unchanged.

  • Updated dependencies [ec1b708026c1578e1c1f6c7bd90be18b26f7ce85]:

    • mobx-react-lite@5.0.2

Don't miss a new mobx release

NewReleases is sending notifications on new releases.