@startup-booster/move-mobx
Advanced tools
Comparing version 0.1.19 to 0.1.21
@@ -63,7 +63,7 @@ const { observable } = require('mobx'); | ||
const ConnectionContext = createContext({ | ||
connection: /** @type {MoveMobxClient} */(null), | ||
connected: false | ||
connection: /** @type {MoveMobxClient} */ (null), | ||
connected: false, | ||
}); | ||
const ConnectionProvider = ({url, renderBeforeConnection = false, children}) => { | ||
const ConnectionProvider = ({ url, renderBeforeConnection = false, children }) => { | ||
const connection = useMemo(() => connect(url), []); | ||
@@ -91,7 +91,3 @@ const [connected, setConnected] = useState(false); | ||
const useMoveValue = ( | ||
connection, | ||
path, | ||
{ defaultValue = undefined, previewSet = true } = {}, | ||
) => { | ||
const useMoveValue = (connection, path, { defaultValue = undefined, previewSet = true } = {}) => { | ||
return useMemo(() => { | ||
@@ -131,3 +127,3 @@ const x = () => { | ||
return connection.collectionRef(collection, { defaultValue, previewSet }) | ||
return connection.collectionRef(collection, { defaultValue, previewSet }); | ||
}; | ||
@@ -137,4 +133,4 @@ const result = x(); | ||
return result; | ||
}, [connection, collection, defaultValue, previewSet]) | ||
} | ||
}, [connection, collection, defaultValue, previewSet]); | ||
}; | ||
@@ -146,3 +142,3 @@ module.exports = { | ||
useMoveCollection, | ||
ConnectionProvider | ||
} | ||
ConnectionProvider, | ||
}; |
{ | ||
"name": "@startup-booster/move-mobx", | ||
"version": "0.1.19", | ||
"version": "0.1.21", | ||
"main": "move-mobx.js", | ||
"license": "MIT", | ||
"dependencies": { | ||
"@startup-booster/move": "0.1.19" | ||
"@startup-booster/move": "0.1.21" | ||
}, | ||
@@ -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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
4713
0
140
+ Added@startup-booster/move@0.1.21(transitive)
- Removed@startup-booster/move@0.1.19(transitive)
Updated@startup-booster/move@0.1.21