timelock-sdk 0.0.27 → 0.0.28

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.
package/dist/client.cjs CHANGED
@@ -151,12 +151,18 @@ const TimelockMarketProvider = ({ children, marketData, envioGraphqlUrl }) => {
151
151
  const chainId = (0, wagmi.useChainId)();
152
152
  const lensAddr = require_numberUtils.timelockLenses[chainId];
153
153
  const uniswapMathLensAddr = require_numberUtils.uniswapMathLenses[chainId];
154
- return /* @__PURE__ */ react.default.createElement(TimelockMarketContext.Provider, { value: {
154
+ const contextValue = (0, react.useMemo)(() => ({
155
155
  marketData: marketData || {},
156
156
  lensAddr,
157
157
  uniswapMathLensAddr,
158
158
  envioGraphqlUrl
159
- } }, children);
159
+ }), [
160
+ marketData,
161
+ lensAddr,
162
+ uniswapMathLensAddr,
163
+ envioGraphqlUrl
164
+ ]);
165
+ return /* @__PURE__ */ react.default.createElement(TimelockMarketContext.Provider, { value: contextValue }, children);
160
166
  };
161
167
  const useCurrentMarket = () => {
162
168
  const context = (0, react.useContext)(TimelockMarketContext);