You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks to the SSR streaming capabilities of React 18, Telefunc can be used for fetching the initial SSR data. (Instead, for example, of using Vike's data() hook.)
If you use vike-react, vike-react already installs react-streaming.
If you use vike-react-query, then see vike-react-query > Usage with Telefunc. (Such Telefunc + React Query usage is very much recommended if you want to use React Query. This ticket is about having integrations without using React Query.)
Warning
There is also an integration with react-streaming built directly into Telefunc, but it isn't ready for public usage yet and breaking change will occur. You can play around with it at /examples/react-streaming. But you're warned: the API as it is today will be deprecated.
The text was updated successfully, but these errors were encountered:
Thanks to the SSR streaming capabilities of React 18, Telefunc can be used for fetching the initial SSR data. (Instead, for example, of using Vike's
data()
hook.)You can already do that today by using Telefunc with the
useAsync()
component hook ofreact-streaming
.If you use
vike-react
,vike-react
already installsreact-streaming
.If you use
vike-react-query
, then see vike-react-query > Usage with Telefunc. (Such Telefunc + React Query usage is very much recommended if you want to use React Query. This ticket is about having integrations without using React Query.)Warning
There is also an integration with
react-streaming
built directly into Telefunc, but it isn't ready for public usage yet and breaking change will occur. You can play around with it at/examples/react-streaming
. But you're warned: the API as it is today will be deprecated.The text was updated successfully, but these errors were encountered: