Comments (4)
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.
🤔So an update should get triggered on each of those calls?
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.
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.
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)
- Duplicate Proxy Calls HOT 3
- `useFlag` breaks server side HOT 1
- Create a `useFlags` hook that enumerates all flags HOT 1
- updateContext overrides the generated session id.
- Right-hand side of instanceof is not an object HOT 1
- CDN client fails for feature toggle with conditional activation strategy HOT 3
- updateContext and setContextField don't call fetchToggles until first fetchToggles completes HOT 2
- Dynamic refresh interval HOT 12
- `customHeaders` aren't included in metrics requests
- `undefined` userId considered in context HOT 10
- Feature toggle correct value not reflecting right away after context Update HOT 5
- Add support to provide namePrefix and tags for filtering HOT 6
- Add esm bundle HOT 2
- Examples with single-spa or any example using micro frontends HOT 2
- CommonJS imports are broken in v3.0.0 HOT 3
- Failed to parse source map Warning HOT 6
- Unleash: unable to fetch feature toggles TypeError: XXXX HOT 8
- Silent errors for offline PWA HOT 3
- Empty 'If-None-Match' header is send causing some firewalls to block the request HOT 1
- Metrics implementation adds a trailing slash to app url HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from unleash-proxy-client-js.