2,524,224 questions
-2
votes
2
answers
68
views
I didn't understand why first code is working and second one not? [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
2
replies
38
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
1
answer
48
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
21
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
53
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
35
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
40
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
50
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
79
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
37
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
61
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
50
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
84
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 ...
1
vote
1
answer
40
views
Map not rendering with Leaflet.js
I'm returning to leaflet.js and I am unable to render the map with the tutorial from "Leaflet Essentials"
When I save the file as an .html and open it, there is a blank webpage. I assumed it ...
0
votes
3
answers
155
views
Javascript and PHP interaction - HTTP response does not work with two outputs [closed]
I have a simple interaction between JavaScript and PHP.
First of all JavaScript calls the PHP routine:
async function genPdf() {
try {
const response = await fetch('...