score:0

Accepted answer

i've had success with spawning a child window via window.open. what i found useful was to create a window context ie:

import { createcontext, usecontext } from 'react'

export const windowcontext = createcontext<window | null>(null as any)
export const usewindowcontext = () => usecontext(windowcontext)

and put this provider around my new windows. i had to change all my portals that mount to mount to the body of the new window but so far this seems to be working fine.


Related Query

More Query from same tag