GithubHelp home page GithubHelp logo

Comments (5)

julientaq avatar julientaq commented on May 16, 2024

Hey @winston0410,
I know it’s old, but did you end up finding a solution?

:)

from eleventy-fetch.

julientaq avatar julientaq commented on May 16, 2024

So i made it work:
here is an example with a graphql Api, but the idea is the same, just make sure that you wait the resolve of the promise so the data is actually updated, otherwise it will not update the site.

(also, having an option in the config to allow/disallow the cache is not a bad idea imho :-D

https://gitlab.coko.foundation/julientaq/flax-aperture/-/blob/master/src/data/articleQuery.js

from eleventy-fetch.

zachleat avatar zachleat commented on May 16, 2024

For the record, the idea here is to use axios behind the scenes instead of node-fetch right?

Putting this one in the enhancement queue

from eleventy-fetch.

zachleat avatar zachleat commented on May 16, 2024

I think it would be awesome to pull out the fetching code to allow adapters here, especially since Node is getting first class fetch.

from eleventy-fetch.

zachleat avatar zachleat commented on May 16, 2024

This repository is now using lodash style issue management for enhancements. This means enhancement issues will now be closed instead of leaving them open.

View the enhancement backlog here. Don’t forget to upvote the top comment with πŸ‘!

from eleventy-fetch.

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.