Giter Site home page Giter Site logo

Cache the history about flaredown HOT 8 CLOSED

rubyforgood avatar rubyforgood commented on June 22, 2024
Cache the history

from flaredown.

Comments (8)

lmerriam avatar lmerriam commented on June 22, 2024 1

Works fantastic for me!

from flaredown.

mpugach avatar mpugach commented on June 22, 2024

@lmerriam check on staging

currently it uses cache only if user has enough checkins to cover visible range

from flaredown.

lmerriam avatar lmerriam commented on June 22, 2024

Thanks Max! It seems to be working well, could you clarify exactly what you meant here:

currently it uses cache only if user has enough checkins to cover visible range

from flaredown.

mpugach avatar mpugach commented on June 22, 2024

If the earliest checkin date is greater than visible start date then API call is preformed again. Same on other edge

from flaredown.

mpugach avatar mpugach commented on June 22, 2024

but the API calls are made with some room, so it tries to fetch more then visible

you can open the network tab in developer tools an play with it

the call look like this

flaredown 2017-01-27 06-21-55

from flaredown.

lmerriam avatar lmerriam commented on June 22, 2024

Gotcha, sounds good.

One thing I should have been more explicit about:

As part of caching I was hoping we could save the user's position and visible trackables in the history. So that if I switch to the check-in, then switch back the the history, I'll return to the same position with the same visible charts and we won't have to reload any data (plus user gets the benefit of not losing their settings)

Is this feasible?

from flaredown.

mpugach avatar mpugach commented on June 22, 2024

I think it is.

from flaredown.

mpugach avatar mpugach commented on June 22, 2024

deployed to staging

from flaredown.

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.