Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@startup-booster/move-mobx

Package Overview
Dependencies
Maintainers
4
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@startup-booster/move-mobx - npm Package Compare versions

Comparing version 0.1.24 to 0.1.25

15

move-mobx.js
const { observable } = require('mobx');
const { connect: baseConnect } = require('@startup-booster/move');
const { useEffect, useMemo, useState, createContext, useContext, createElement } = require('react');
const debounce = require('lodash.debounce');
const debounce = require('lodash/debounce');

@@ -68,3 +68,7 @@ /** @type {function(string, MoveOptions): MoveMobxClient} */

const ConnectionProvider = ({ url, renderBeforeConnection = false, options = {}, children }) => {
const connection = useMemo(() => connect(url, options), []);
console.log('Rendering connection provider');
const connection = useMemo(() => {
console.log('Connecting');
return connect(url, options);
}, []);
const [connected, setConnected] = useState(false);

@@ -92,2 +96,5 @@

const useMoveValue = (connection, path, { defaultValue = undefined, previewSet = true } = {}) => {
useEffect(() => {
console.log('[debug] -> ', previewSet);
}, [previewSet]);
return useMemo(() => {

@@ -109,3 +116,3 @@ const x = () => {

return result;
}, [connection, path, defaultValue, previewSet]);
}, [connection, connection.data.user, path, defaultValue, previewSet]);
};

@@ -133,3 +140,3 @@

return result;
}, [connection, collection, defaultValue, previewSet]);
}, [connection, connection.data.user, collection, defaultValue, previewSet]);
};

@@ -136,0 +143,0 @@

{
"name": "@startup-booster/move-mobx",
"version": "0.1.24",
"version": "0.1.25",
"main": "move-mobx.js",
"license": "MIT",
"dependencies": {
"@startup-booster/move": "0.1.24"
"@startup-booster/move": "0.1.25"
},

@@ -9,0 +9,0 @@ "peerDependencies": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc