diff --git a/packages/@react-aria/collections/src/CollectionBuilder.tsx b/packages/@react-aria/collections/src/CollectionBuilder.tsx index 595ae3d4822..e6dfbbead59 100644 --- a/packages/@react-aria/collections/src/CollectionBuilder.tsx +++ b/packages/@react-aria/collections/src/CollectionBuilder.tsx @@ -116,7 +116,7 @@ function useCollectionDocument>(cr useLayoutEffect(() => { document.isMounted = true; return () => { - // Mark unmounted so we can skip all of the collection updates caused by + // Mark unmounted so we can skip all of the collection updates caused by // React calling removeChild on every item in the collection. document.isMounted = false; }; diff --git a/packages/@react-aria/collections/src/Hidden.tsx b/packages/@react-aria/collections/src/Hidden.tsx index 51cfa96034e..5e579131c12 100644 --- a/packages/@react-aria/collections/src/Hidden.tsx +++ b/packages/@react-aria/collections/src/Hidden.tsx @@ -10,10 +10,8 @@ * governing permissions and limitations under the License. */ -import {createPortal} from 'react-dom'; import {forwardRefType} from '@react-types/shared'; import React, {createContext, forwardRef, ReactElement, ReactNode, useContext} from 'react'; -import {useIsSSR} from '@react-aria/ssr'; // React doesn't understand the