@primer/components 0.0.0-20211086336 → 0.0.0-202110871242

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.
@@ -93,7 +93,7 @@ const Portal = ({
93
93
  onMount === null || onMount === void 0 ? void 0 : onMount();
94
94
  return () => {
95
95
  parentElement.removeChild(element);
96
- };
96
+ }; // eslint-disable-next-line react-hooks/exhaustive-deps
97
97
  }, [elementRef]);
98
98
  return /*#__PURE__*/(0, _reactDom.createPortal)(children, elementRef.current);
99
99
  };
@@ -37,8 +37,9 @@ function useCombinedRefs(...refs) {
37
37
  setRefs(combinedRef.current);
38
38
  return () => {
39
39
  // ensure the refs get updated on unmount
40
+ // eslint-disable-next-line react-hooks/exhaustive-deps
40
41
  setRefs(combinedRef.current);
41
- };
42
+ }; // eslint-disable-next-line react-hooks/exhaustive-deps
42
43
  }, [...refs, combinedRef.current]);
43
44
  return combinedRef;
44
45
  }
@@ -77,7 +77,7 @@ export const Portal = ({
77
77
  onMount === null || onMount === void 0 ? void 0 : onMount();
78
78
  return () => {
79
79
  parentElement.removeChild(element);
80
- };
80
+ }; // eslint-disable-next-line react-hooks/exhaustive-deps
81
81
  }, [elementRef]);
82
82
  return /*#__PURE__*/createPortal(children, elementRef.current);
83
83
  };
@@ -29,8 +29,9 @@ export function useCombinedRefs(...refs) {
29
29
  setRefs(combinedRef.current);
30
30
  return () => {
31
31
  // ensure the refs get updated on unmount
32
+ // eslint-disable-next-line react-hooks/exhaustive-deps
32
33
  setRefs(combinedRef.current);
33
- };
34
+ }; // eslint-disable-next-line react-hooks/exhaustive-deps
34
35
  }, [...refs, combinedRef.current]);
35
36
  return combinedRef;
36
37
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primer/components",
3
- "version": "0.0.0-20211086336",
3
+ "version": "0.0.0-202110871242",
4
4
  "description": "Primer react components",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib-esm/index.js",