@startup-booster/move-mobx
Advanced tools
Comparing version 0.1.40 to 0.1.41
@@ -1,2 +0,2 @@ | ||
const { observable } = require('mobx'); | ||
const { observable, action } = require('mobx'); | ||
const { connect: baseConnect } = require('@startup-booster/move'); | ||
@@ -19,3 +19,3 @@ const { useEffect, useMemo, useState, createContext, useContext, createElement } = require('react'); | ||
let box = observable({ value: defaultValue }); | ||
const listenCallback = (newValue, subpath) => { | ||
const listenCallback = action((newValue, subpath) => { | ||
if (!subpath) { | ||
@@ -26,3 +26,3 @@ box.value = newValue; | ||
lodashSet(box.value, subpath, newValue); | ||
}; | ||
}); | ||
connection.listen(path, listenCallback); | ||
@@ -29,0 +29,0 @@ |
{ | ||
"name": "@startup-booster/move-mobx", | ||
"version": "0.1.40", | ||
"version": "0.1.41", | ||
"main": "move-mobx.js", | ||
"license": "MIT", | ||
"dependencies": { | ||
"@startup-booster/move": "0.1.40" | ||
"@startup-booster/move": "0.1.41" | ||
}, | ||
@@ -9,0 +9,0 @@ "peerDependencies": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5267
+ Added@startup-booster/move@0.1.41(transitive)
- Removed@startup-booster/move@0.1.40(transitive)
Updated@startup-booster/move@0.1.41