give this a try i was using recoil for user session management.
When deeplinking happens it directly jumps to screen.
so i had to make the screen renders based on conditions and there is restoreSession function.
recoil is not availble when deeplink happens , i created userref to store the users session
https://gist.github.com/sahilkashyap64/b48e563b8ab3bbf247c40700622e7b57