Comments (7)
Figured the same thing. Its only pre-loading the data to prevent a client fetch.
from axios-hooks.
Also thanks from my side for your effort and work. But I agree with above statements: That is not server side rendering. For that the html code has to be rendered with data already on server side which is not the case. The data fetching on server side works, the cache is correctly filled on client side on the initial prerendered page.
But I have another problem: The option 'useCache=true' does not seem to work, the fetch is still executed again on client side with date=undefined and loading=true.
from axios-hooks.
I am aware of this issue, I've reproduced it but I've postponed work on it because I figured it would require a considerable rewrite of the caching layer, which is now relying on axios's built-in caching mechanism and which cannot work in SSR scenarios. I'm planning to work on this at some point, but I don't know when yet. Of course, any PR is more than welcome and I'm available to provide implementation hints if anyone's interested in picking this up.
from axios-hooks.
But I have another problem: The option 'useCache=true' does not seem to work, the fetch is still executed again on client side with date=undefined and loading=true.
@sieglingm If this is a different issue, can you please file a new one?
from axios-hooks.
hello guys, are there any developments for this issue?
from axios-hooks.
@bananamboon no developments unfortunately. I don't have enough time to spend on this myself and I would be happy to see a contribution to address this issue.
from axios-hooks.
if the data is not fetched and HTML is not rendered on server side, then its not really SSR. the README says it supports SSR which is very misleading. I think people come to this repo mainly because of SSR support
Any follow-up on this issue
from axios-hooks.
Related Issues (20)
- Release pending!
- Refetch "expression is not callable" HOT 2
- Why I'm getting 2 rendered using this hook, when component mounts? HOT 9
- Release pending!
- Prevent CanceledError and redundant HTTP calls for identical request data HOT 1
- Support for API polling HOT 1
- type error HOT 9
- Uncaught TypeError: object is not iterable (cannot read property Symbol(Symbol.iterator)) HOT 1
- How to configure SSR with NextJS? HOT 3
- "Uncaught runtime errors: Cannot read properties of undefined (reading 'data')" after upgrading to CRA 5.0.1 & Node 18 HOT 6
- Not usable within the US? HOT 1
- Error from a dynamically loaded uri HOT 3
- Release pending!
- Release pending!
- useAxios hook sending in 2 requests, the first is cancelled immediately HOT 3
- Release pending! HOT 3
- Release pending!
- Release pending!
- Type error: MouseEvent using refetch and provided example from docs HOT 2
- Still an issue with both `executeGet` and `execute` methods when executed manually HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from axios-hooks.