@homebound/beam 2.113.0 → 2.113.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -17,7 +17,12 @@ function useComputed(fn, deps) {
17
17
  }
18
18
  autoRunner.current = (0, mobx_1.autorun)(() => {
19
19
  // Always eval fn() (even on 1st render) to register our observable.
20
- autoRanValue.current = fn();
20
+ const newValue = fn();
21
+ // We could eventually use a deep equals to handle objects
22
+ if (newValue === autoRanValue.current) {
23
+ return;
24
+ }
25
+ autoRanValue.current = newValue;
21
26
  // Only trigger a re-render if this is not the 1st autorun. Note
22
27
  // that if deps has changed, we're inherently in a re-render so also
23
28
  // don't need to trigger an additional re-render.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@homebound/beam",
3
- "version": "2.113.0",
3
+ "version": "2.113.1",
4
4
  "author": "Homebound",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",