-
-
Notifications
You must be signed in to change notification settings - Fork 114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SSR Not working #32
Comments
What is the error? |
Please check nextjs example on the codesandbox, it also doesn't works |
Everything should be working. Please use |
@alex-cory Your example is not similar to the example of the author of the question. You have a file download by clicking. That is, client-side rendering. And server-side rendering is required. |
This example differs from the example presented on the use-http website export default () => {
const stories = useFetch("https://hacker-news.firebaseio.com/v0/topstories.json");
if (stories.error) return "Error";
if (stories.loading) return "Loading";
return <pre>{JSON.stringify(stories.data, null, 2)}</pre>;
}; In theory, a request to the hacker-news site should occur on the server. But I checked - this does not happen. The request is sent alas on the client. |
I'm using version
0.1.68
but nothing is working. This is my codes:The text was updated successfully, but these errors were encountered: