Giter Site home page Giter Site logo

Comments (11)

NeoLegends avatar NeoLegends commented on August 22, 2024

PRs welcome 😄

from velocity-pwa.

NeoLegends avatar NeoLegends commented on August 22, 2024

Alternatively we can consider changing the poll interval to 20s.

from velocity-pwa.

Empty2k12 avatar Empty2k12 commented on August 22, 2024

Alternatively we can consider changing the poll interval to 20s.

Don't do it

from velocity-pwa.

NeoLegends avatar NeoLegends commented on August 22, 2024

Wenn ihr SSE einbaut mache ich das vllt wirklich.

from velocity-pwa.

Empty2k12 avatar Empty2k12 commented on August 22, 2024

Can you access SSE on a domain that your frontend is not hosted on?

from velocity-pwa.

NeoLegends avatar NeoLegends commented on August 22, 2024

Not sure, but proper CORS headers will resolve that.

from velocity-pwa.

NeoLegends avatar NeoLegends commented on August 22, 2024

Not sure though about adding a dependency to your servers. How's your uptime been?

from velocity-pwa.

Empty2k12 avatar Empty2k12 commented on August 22, 2024

Access-Control-Allow-Origin: *will be regeling!

from velocity-pwa.

NeoLegends avatar NeoLegends commented on August 22, 2024

This will actually require a large(ish) refactor of the hooks code, because currently it's all based on wrapping the official REST API and polling periodically.

from velocity-pwa.

Empty2k12 avatar Empty2k12 commented on August 22, 2024

That's why we're using Redux for state management and time-traveling debugging. But I can see why you chose a different solution based on your requirements. Not sure how to best adapt/combine both..

from velocity-pwa.

NeoLegends avatar NeoLegends commented on August 22, 2024

Well, at least the data fetching would need to be changed. This would be possible and the hook surface wouldn't need to change much (if at all). Redux wouldn't really provide an advantage here. (In redux you'd change your data layer that would be made with saga or thunk or something)

from velocity-pwa.

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.