@jobber/components 4.85.0 → 4.85.2

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.
@@ -766,11 +766,9 @@ function DataListItems({ size = "xs", }) {
766
766
  }
767
767
 
768
768
  function DataListLayout({ children, size = "xs", }) {
769
- const { registerLayout, loadingState, layouts } = useDataListContext();
769
+ const { registerLayout, loadingState } = useDataListContext();
770
770
  const { activeBreakpoint } = useActiveLayout();
771
771
  React.useEffect(() => {
772
- if (layouts[size])
773
- return;
774
772
  registerLayout(size, children);
775
773
  }, [size, children]);
776
774
  const shouldRenderList = size === activeBreakpoint;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jobber/components",
3
- "version": "4.85.0",
3
+ "version": "4.85.2",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -19,7 +19,7 @@
19
19
  "dist/*"
20
20
  ],
21
21
  "dependencies": {
22
- "@jobber/design": "^0.54.0",
22
+ "@jobber/design": "^0.55.0",
23
23
  "@jobber/formatters": "*",
24
24
  "@jobber/hooks": "^2.9.0",
25
25
  "@popperjs/core": "^2.0.6",
@@ -80,5 +80,5 @@
80
80
  "> 1%",
81
81
  "IE 10"
82
82
  ],
83
- "gitHead": "8a94ae96fa60a2d0db036ab5bc87d9dc4df39f78"
83
+ "gitHead": "ccf5e61f97409b70bae5810ff8a8c77c2906b684"
84
84
  }