rsnext/packages/next/client/portal
Sukka 05b621aa9c
refactor(portal): remove useRef from portal component (#39792)
The PR is similar to #39791.

Currently, `<Portal />` saves the container in a ref (with initial value as `null`). The update of the ref happens during the `useEffect`, after creating the corresponding HTMLElement. However, `<Portal />` has to use `forceUpdate` since mutating a ref will not cause the component to update.
The PR fixes that by saving the container of the `Portal` in a state, so no more `forceUpdate`.
2022-08-21 09:39:43 +00:00
..
index.tsx refactor(portal): remove useRef from portal component (#39792) 2022-08-21 09:39:43 +00:00
LICENSE Revert "Revert "[a11y] Route Announcements"" (#23086) 2021-03-15 20:18:11 +00:00