Giter Club home page Giter Club logo

Comments (11)

ooade avatar ooade commented on July 23, 2024 3

@sedubois Workbox is pretty hot 🔥 🔥 Tried it's precaching mechanism via workbox-webpack-plugin, which doesn't yet support runtime caching. We can try adding it later with its other cool features like:

  • Background Sync
  • Workbox Google Analytics
  • and so on...

from nextsimplestarter.

sedubois avatar sedubois commented on July 23, 2024 1

Yes adding a backend makes things more complex of course, but as long as a backend is needed, I have the feeling that it's actually the easiest backend solution.

But I get it if you only wanted to demonstrate PWA here and not offline-first.

from nextsimplestarter.

ooade avatar ooade commented on July 23, 2024 1

Yeah, you're right. Let's leave this open, as a reminder to work on it. I'll take this up if no one else will. Thanks 👍

from nextsimplestarter.

vsc-github avatar vsc-github commented on July 23, 2024 1

@ooade Thanks, makes sense. I think addition of redux-offline would be a great addition to this project but then again it'll make this starter a very opinionated one. Ah, tough luck.

from nextsimplestarter.

ooade avatar ooade commented on July 23, 2024

IMO, i feel its not necessary. I mean, data don't persist to a database/localstorage/.... As you can see here, we just have redux add/remove a todo and once we reload the page, off it goes 🚀

But, we could still make this happen. If you interested, you can take it up and bump our version to 2.0.0.
I'd love to see comments from other people as well and thanks for raising this up 😄

from nextsimplestarter.

sedubois avatar sedubois commented on July 23, 2024

Yeah don't know how big you want this to become but it would be really great to have a more realistic example 😄 Plugging a backend (I'd recommend Graphcool) and a local storage (redux-offline using redux-persist under the hood) to have a more realistic example. I think it would be hugely helpful and very appreciated by @jevakallio and the guys from Zeit and Graphcool. Could definitely justify a little Medium article.

Don't know if I can make that contribution myself as my aim is to learn this stuff and have loads of other pieces to assemble in my project 😉 but if there's a PR coming I'm certainly willing to help reviewing.

from nextsimplestarter.

ooade avatar ooade commented on July 23, 2024

Graphcool... I think we could have this on a different repo because i think it kinda goes against the "Simple Starter" name making it a lil bit verbose.

from nextsimplestarter.

vsc-github avatar vsc-github commented on July 23, 2024

A very interesting project. I have one doubt though. Doesn't the PWA approach embraces offline-first architecture? If this project doesn't support offline first , what other PWA characteristics is it providing out of the box?

from nextsimplestarter.

ooade avatar ooade commented on July 23, 2024

@vsc-github vercel/next.js#861 (comment)

from nextsimplestarter.

sedubois avatar sedubois commented on July 23, 2024

Also, maintenance of Redux-offline seems to have stalled. Maybe need to look at technologies used inside https://hnpwa.com such as Workbox etc.

from nextsimplestarter.

codeshifu avatar codeshifu commented on July 23, 2024

@ooade workbox now supports runtime caching

from nextsimplestarter.

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.