Skip to content

Commit ce765d7

Browse files
committed
[fix] Support Next.js Cache Components
1 parent b3d94d2 commit ce765d7

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

packages/portal/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@reach/portal",
3-
"version": "0.18.0",
3+
"version": "0.18.1",
44
"description": "Declarative portals for React",
55
"author": "React Training <hello@reacttraining.com>",
66
"license": "MIT",

packages/portal/src/reach-portal.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ const PortalImpl: React.FC<PortalProps> = ({
7171
return () => {
7272
if (portalNode.current && body) {
7373
body.removeChild(portalNode.current);
74+
portalNode.current = null;
7475
}
7576
};
7677
}, [type, forceUpdate, containerRef]);

0 commit comments

Comments
 (0)