2,524,216 questions
Advice
0
votes
0
replies
32
views
Detect use of HTTP2/3 in javascript
Actual problem
The actual problem I'm trying to solve is loading resources, among which are potentially 8+ (more than the parallel connection limit) long-running requests. (nd-json)
The issue is that ...
-4
votes
0
answers
34
views
What's the navigator.platform of HarmonyOS both phones and desktop? [closed]
I haven't owned any Huawei device yet as all of the native HarmonyOS products is only available on China or requires emulating them (which my laptop can't afford to do this and take a risk). I need ...
-3
votes
2
answers
95
views
How to Array Reduce with Implicit Return [closed]
Arrow function didn't need 'return' for single line and arr.reduce function pass the first argument to next call. So we didn't need to return first argument and also didn't need create the multiline ...
Advice
0
votes
5
replies
65
views
Retrieve property of [object Map] with arrow function - JS
Elo,
my issue is the following...
I have a map in js, which was created through a fetch(). This map however includes an arrow function, of which I can't grasp how to access one of its properties/...
-1
votes
2
answers
70
views
Asynchronous request and insertion of received nodes
let el = (t, p = {}, ...c) =>
Object.assign(document.createElement(t),
p,
{
append(...a) {
return HTMLElement.prototype.append.apply(this, a), this;
}
}
).append(...
-2
votes
1
answer
23
views
How to display waypoints included in a GPX track in Openlayers
Does anybody know how to display waypoints included in a GPX in Openlayers?
I tried the following, but that gives me only the track, not the waypoints:
var lgpx = new OpenLayers.Layer.Vector("...
Advice
0
votes
1
replies
57
views
An inquiry regarding Promises vs Callbacks and performance impact within the event loop
so I have been diving into NodeJS's internals and specifically in the event loop and how it handles different phases and whilst I was reading and wrapping my head around things I had a thought about ...
-2
votes
0
answers
37
views
React Native iOS app crashes on language change with react-native-restart (works on Android) [closed]
I am facing an issue in my React Native application where the app crashes on iOS when changing the language and triggering a restart.
🔧 Environment:
react-native: 0.73.2
react-native-restart: 0.0....
0
votes
0
answers
42
views
getstream No permission to publish VIDEO
I keep getting this error when ever I enable the camera call?.camera.enable() for video calls in my Expo React Native app
No permission to publish VIDEO
const myCall = client.call("default"...
Advice
0
votes
2
replies
53
views
Refresh or handle amount change on credit/debit card paypal smart button
I have implemented paypal smart buttons on a modal, then i realized that if open the credit/debit card form and then close the modal to chose another product. The amount that is configurated is still ...
-3
votes
2
answers
83
views
Return the depth of an object with multiple properties [closed]
I'm doing a coding exercise. I must create a recursive function that return the depth of an object. Said object has several properties and arrays of children, emulating a family tree:
const foo = { ...
-1
votes
0
answers
44
views
React context in external package not saving state
I'm building an internal auth SDK that requires a configuration method to run before any of its other functionalities will work. I've put logs all over the place, and I've discovered that when I call ...
1
vote
0
answers
67
views
Vite: No matching export in "node_modules/...?sharedworker" for import "default"
When running npm run dev I get the error
Error: Error during dependency optimization:
X [ERROR] No matching export in "node_modules/@XXX/core/src/multicast.ts?sharedworker" for import "...
0
votes
0
answers
52
views
Firebase Google Auth signInWithRedirect results in a blank white screen on custom domain
I am building a web application using React (Vite) and Firebase Authentication. I am facing an issue where Google Login works fine on localhost, but on my custom domain, it stucks on a blank white ...
-3
votes
0
answers
87
views
Why is this async API call failing when I don't use a debugger? [closed]
I am trying to create a react app and I need it to call the MLB API to get a list of game IDs, then go to each game and get some play-by-play data. If I set a debugger anywhere in my function, I can ...