Giter Site home page Giter Site logo

Comments (4)

ivarconr avatar ivarconr commented on June 14, 2024

The update will trigger if the SDK gets 304 back from the proxy. This happens if the list of enabled feature toggles changes for the provided context.

from unleash-proxy-client-js.

snowfrogdev avatar snowfrogdev commented on June 14, 2024

🤔So an update should get triggered on each of those calls?
image
I'm confused, I thought a 304 status code normally meant nothing had changed and you could just use the cached data? See https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/304

from unleash-proxy-client-js.

snowfrogdev avatar snowfrogdev commented on June 14, 2024

Ok, I can confirm that it works as intended, when the call returns a 200 OK, signifying that new information is available. The reason it wasn't working for me at first has nothing to do with the library and everything to do with the fact that I'm an idiot. I'm using the fromEvent() function from RxJS but I forgot to subscribe to the Observable. 🤦‍♂️Thanks for endulging me.

from unleash-proxy-client-js.

ivarconr avatar ivarconr commented on June 14, 2024

everything to do with the fact that I'm an idiot

I doubt that is correct. I can relate to the feeling though.

Thanks for confirming and closing the issue!

from unleash-proxy-client-js.

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.