I took your code and made it semi working on RN but I have to replace a couple things such as
remove useId() and just pass stringify key two times into the useSuspense
change useSuspenseData from ts to tsx so I can create provider wrap manually to the _layout of expo app
removed the provideInitialData bit as there is no html in RN/Expo
It works with Suspense! However removing useId makes me unease, I wonder if there is a better workaround but in the mean time do you think you can use this knowledge to add support for expo officially?
In the long term, I agree, it would be really nice to directly support RN as well. But for now I think the best would be a fork. Let me know if you publish a fork and I'll add a link to it in the readme.
I took your code and made it semi working on RN but I have to replace a couple things such as
It works with Suspense! However removing useId makes me unease, I wonder if there is a better workaround but in the mean time do you think you can use this knowledge to add support for expo officially?
Thanks.