@startup-booster/move-mobx
Advanced tools
Comparing version 0.1.11 to 0.1.12
@@ -17,3 +17,3 @@ import React from 'react'; | ||
export function useConnection(url: string): { connection: MoveClient; connected: boolean }; | ||
export function useConnection(): { connection: MoveClient; connected: boolean }; | ||
export function useMoveValue( | ||
@@ -31,5 +31,5 @@ connection: MoveClient, | ||
url: string, | ||
renderBeforeConnection: boolean, | ||
renderBeforeConnection?: boolean, | ||
} | ||
export type ConnectionProvider = React.FC<IConnectionProviderProps> |
const { observable } = require('mobx'); | ||
const { connect: baseConnect } = require('@startup-booster/move'); | ||
const { useEffect, useMemo, useState, createContext, useContext } = require('react'); | ||
const { useEffect, useMemo, useState, createContext, useContext, createElement } = require('react'); | ||
@@ -82,5 +82,3 @@ /** @type {function(string): MoveMobxClient} */ | ||
return <ConnectionContext.Provider value={contextValue}> | ||
{children} | ||
</ConnectionContext.Provider> | ||
return createElement(ConnectionProvider.Provider, { value: contextValue }, children); | ||
}; | ||
@@ -87,0 +85,0 @@ |
{ | ||
"name": "@startup-booster/move-mobx", | ||
"version": "0.1.11", | ||
"version": "0.1.12", | ||
"main": "move-mobx.js", | ||
"license": "MIT", | ||
"dependencies": { | ||
"@startup-booster/move": "0.1.11" | ||
"@startup-booster/move": "0.1.12" | ||
}, | ||
@@ -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
4596
142
+ Added@startup-booster/move@0.1.12(transitive)
- Removed@startup-booster/move@0.1.11(transitive)
Updated@startup-booster/move@0.1.12