react-refetch icon indicating copy to clipboard operation
react-refetch copied to clipboard

Filling data server side instead of on client side

Open pastelsky opened this issue 9 years ago • 8 comments

There doesn't seem to be a mention of how one can use this library to fetch data and populate views on the server side. Is it possible to do so with this library à la react-resolver? It would be a nice addition for people looking to build completely isomorphic apps.

pastelsky avatar Feb 14 '16 09:02 pastelsky

I think that https://github.com/heroku/react-refetch/issues/11 will need to be completed first. It would also be good have some docs/examples for it.

ryanbrainard avatar Feb 16 '16 19:02 ryanbrainard

Now that v1.0.0-beta.0 has shipped, there are a lot more isomorphic possibilities. Now would be a good time for anyone interested to kick the tires and experiment with server side rendering with React Refetch.

ryanbrainard avatar Mar 28 '16 06:03 ryanbrainard

@ryanbrainard What's the status on isomorphic support as of now?

isaachinman avatar Jul 25 '16 18:07 isaachinman

@isaachinman We don't do anything isomorphic with this library internally, so there is no explicit support and what might exist incidentally is not tested or documented.

ryanbrainard avatar Jul 25 '16 18:07 ryanbrainard

Ah okay, that is a shame.

isaachinman avatar Jul 25 '16 18:07 isaachinman

This issue is address that by anyone who would like to contribute. I just don't have the expertise or need for isomorphism, but there is someone who does, PRs would be welcome :)

ryanbrainard avatar Jul 26 '16 01:07 ryanbrainard

Hi, Is server-side rendering still not implemented?

mymtw avatar Mar 23 '17 04:03 mymtw

@mymtwcom Sorry, still the same answer as before.

ryanbrainard avatar Mar 23 '17 05:03 ryanbrainard