GithubHelp home page GithubHelp logo

Comments (4)

ConsoleTVs avatar ConsoleTVs commented on May 13, 2024 1

Hey guys, got an update for you all.

I am no expert at SSR, and since sveltekit is still in beta I don't want to get into it.

So for now, what I made is make it work with any SSR solution but without actually fetching on the server. Instead, sswr will only fetch on the client.

Hope this fix works for your current applications. I am happy to get any PR. This library is fairly simple at the end of the day.

I've also fixed a few typescript generic paramenters. Please try version: 1.2.0

Have a nice day!

from sswr.

asv7c2 avatar asv7c2 commented on May 13, 2024

Same problem.

from sswr.

ConsoleTVs avatar ConsoleTVs commented on May 13, 2024

Hey guys, can we elaborate a bit on the problem? I have never used ssr. What is the intention of it, should it automatically fetch on server first and then client?

from sswr.

Evertt avatar Evertt commented on May 13, 2024

Yeah the idea is that it fetches on the server first so that it can deliver pre-rendered html to the client. And after that the client takes over.

So on the server I want to be able to configure swr to use node-fetch.

from sswr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.