@m4l/layouts 0.0.16 → 0.0.19

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.
@@ -1,4 +1,4 @@
1
- import { createContext, useState, useRef, useCallback, useMemo } from "react";
1
+ import { createContext, useCallback, useState, useRef, useMemo } from "react";
2
2
  import { voidFunction, useEnvironment } from "@m4l/core";
3
3
  import { SplitLayout } from "@m4l/components";
4
4
  import { g as getModuleLayoutComponentsDictionary, a as ModuleLayout } from "../ModuleLayout/index.js";
@@ -28,9 +28,9 @@ function MasterDetailProvider(props) {
28
28
  masterSelection,
29
29
  setMasterSelection
30
30
  } = props;
31
- const onChangeMasterSelection = (newMasterSelection) => {
31
+ const onChangeMasterSelection = useCallback((newMasterSelection) => {
32
32
  setMasterSelection(newMasterSelection);
33
- };
33
+ }, [setMasterSelection]);
34
34
  return /* @__PURE__ */ jsx(MasterDetailContext.Provider, {
35
35
  value: {
36
36
  masterSelection,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@m4l/layouts",
3
3
  "private": false,
4
- "version": "0.0.16",
4
+ "version": "0.0.19",
5
5
  "license": "UNLICENSED",
6
6
  "scripts": {
7
7
  "dev": "vite",
@@ -14,7 +14,7 @@
14
14
  "format": "npm run prettier:fix && npm run lint:fix"
15
15
  },
16
16
  "dependencies": {
17
- "@m4l/components": "^0.0.38",
17
+ "@m4l/components": "^0.0.40",
18
18
  "react": "^17.0.0 || 18.x",
19
19
  "react-dom": "^18.0.0"
20
20
  },