Comments (6)
I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.
from firebase-js-sdk.
Hi @enterprisecoderr, thanks for reaching out to us. I'm wasn't able to reproduce the behavior that you've mentioned. I tried fetchAndActivate()
using the ff:
- Edit the
src/app/app.tsx
to be:
const remoteConfig = getRemoteConfig(app);
remoteConfig.settings.minimumFetchIntervalMillis = 0;
fetchAndActivate(remoteConfig)
.then(()=>{
const value = getValue(remoteConfig, "someKey")
.asString()
console.log(`Value: ${value}`);
})
- Run
npm run start
- Visit the
http://localhost:4200/
- Update the remote config value in the console
- Refresh the page and get the updated value.
To get a better understanding of whatβs causing the failed fetch
, could you provide a minimal, but complete sample of a project that I can run locally.
from firebase-js-sdk.
I am not using the bundled fetchAndActivate
command. I'm calling activate
and then later fetchConfig
. Can you try with that setup?
from firebase-js-sdk.
Hi @enterprisecoderr, I tried using the fetchConfig
and activate
but I still wasn't able to replicate the behavior. Here is the sample snippet of my code:
fetchConfig(remoteConfig)
.then(()=>{
activate(remoteConfig)
.then(()=>{
const value = getValue(remoteConfig, "someKey")
.asString()
console.log(`Value: ${value}`);
})
.catch((error)=>{
console.log(error)
});
})
.catch((error)=>{
console.log(error)
});
I used .then()
and called activate()
to avoid any race condition as both activate
and fetchConfig
returns a promise. Could you try following the implementation and see if the behavior persists.
from firebase-js-sdk.
Hey @enterprisecoderr. We need more information to resolve this issue but there hasn't been an update in 5 weekdays. I'm marking the issue as stale and if there are no new updates in the next 5 days I will close it automatically.
If you have more information that will help us get to the bottom of this, just add a comment!
from firebase-js-sdk.
Since there haven't been any recent updates here, I am going to close this issue.
@enterprisecoderr if you're still experiencing this problem and want to continue the discussion just leave a comment here and we are happy to re-open this.
from firebase-js-sdk.
Related Issues (20)
- firebase-js-sdk has typos HOT 1
- firebase/firestore: Firestore (10.12.2): WebChannelConnection RPC 'Write' stream 0x8ad3221f transport errored HOT 22
- onAuthStateChanged triggers with null user when new tab is opened HOT 4
- FR: Firebase Auth Lite HOT 8
- onSnapshot Not working HOT 10
- Cross-Origin-Opener-Policy policy would block the window.closed call. HOT 11
- "Maximum call stack size exceeded" in Firebase Auth (web extensions version) HOT 6
- [FirebaseServerApp] Failed to initialize in Next.JS Edge Runtime HOT 10
- Firestore not working in beforeAuthStateChanged HOT 2
- getStream() function has error: stream.pipe is not a function HOT 1
- getDocsFromCache returning deleted documents HOT 2
- Full localStorage - Firestore offline persistence - FIRESTORE (10.12.0) INTERNAL ASSERTION FAILED: Unexpected state HOT 2
- Request to allow setting userVisibleOnly property in Microsoft Edge browser
- firebase/auth no typescript support HOT 2
- Update undici dependency to 6.6.1 due to CVE-2024-24750 HOT 2
- BUG: using multi-tab persistence, the queries in the secondary tabs don't report metadata.fromCache=false HOT 7
- Error: Uncaught (in promise): FirebaseError: Firebase: Error (auth/internal-error) HOT 3
- RESOURCE_EXHAUSTED: Quota Exceeded HOT 2
- Bloom Blob Missing Specifier in `[email protected]` HOT 4
- Unable to Upload Files Larger than 2GB to Firebase Storage 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 firebase-js-sdk.