2,524,103 questions
Advice
1
vote
0
replies
22
views
Embedding Javascript into R Shiny Conductor Tour
This posting is intended to give other users an example of how to use javascript within a Conductor tour within a Shiny app. At the time of writing, the vignette for the Conductor package only says ...
-2
votes
0
answers
25
views
arr.reduce method return accumulator the first argument. but why last value returned [duplicate]
arr.reduce method return the accumulator which is the first argument. So why the last value of array is return in my code.
The problem which I was trying to solve is
Correct solution:
function ...
-2
votes
1
answer
57
views
How to use of thunks with useContext/history/location in React/Redux
I am currently working on an application that has a large amount of duplicated logic shared across its components. One of the primary reasons for this is the components are using a Context component ...
-2
votes
0
answers
48
views
Pocketbase: Superadmin Permissions (privacy)
I need help with my pocketbase backend.
I have a js frontend and the js Pocketbase backend.
Me and my Superadmins in the Pocketbase should see the entries if the owner of the entry (relation to users ...
0
votes
0
answers
39
views
Motion: How to combine parent staggerChildren with individual animations when dynamically adding items?
I am building a dynamic list in React with Framer Motion. I want to achieve two goals:
When the list initially mounts, the items should animate in sequentially using the parent's staggerChildren.
...
-3
votes
0
answers
38
views
React native expo Facing Route erroe [closed]
I am encountering an issue with my running app. Does anyone know a solution?
I have been searching for a solution for two days but am not getting any answer.
Best practices
1
vote
3
replies
42
views
Are there security issues with using responseXML property of XMLHttpRequest?
I am writing JavaScript code that runs in a web browser, retrieves a user-supplied XML file, and gets certain information out of it. I know that XML parsing is a potentially dangerous operation if the ...
2
votes
1
answer
52
views
Why Does startTransition Trigger High-Priority Updates and Re-renders Even Without State Changes?
I came across the following statement:
Calling startTransition, even if no updates are triggered inside it, will still cause both a high-priority update and a low-priority update.
To check this ...
-1
votes
1
answer
33
views
Redux and interception task integration in my Angular 21 project
In my Angular 21 project, I am facing an integration issue between Redux state management and the HTTP interceptor pipeline, where the expected synchronization of authentication data (such as JWT ...
2
votes
1
answer
43
views
Algolia clone index collections during copy operation
I noticed that the copy operation, even wihtout passing scopes, doesn't clone the collections.
Is there a way (or workaround) to actually copy the collections configuration?
My idea would be to scan ...
3
votes
1
answer
79
views
Is there any built-in way to determine whether a setTimeout callback has already been executed?
When using setTimeout, we get back a timer ID that can be used to cancel the timer:
const id = setTimeout(() => {
console.log("Executed");
}, 1000);
clearTimeout(id);
However, there ...
Advice
0
votes
0
replies
35
views
How to set dynamic meta tags in a React SPA so they are visible to search engine crawlers?
I’m working on a React-based website where most pages are rendered dynamically. The issue I’m facing is that meta tags like title and description are not being properly indexed by Google for ...
Advice
0
votes
7
replies
76
views
Using value from column for right clickable menu in table
I hope someone can help. I have a 13 column table of members details, using javascript I have a right clickable menu displayable on each row.
In one column one, which is hidden, is the record ID ...
0
votes
2
answers
51
views
Why doesn’t JavaScript provide a native way to cancel Promise.all when one promise fails?
I’m working with multiple asynchronous operations using Promise.all:
const promises = [
fetch("/api/1"),
fetch("/api/2"),
fetch("/api/3"),
];
await Promise.all(...
Best practices
0
votes
0
replies
15
views
Next.js - barrel imports (index.ts re-exports)
We are working on a large Next.js application and doing a performance audit around barrel imports (index.ts re-exports).
From research, barrel files can negatively affect tree-shaking, bundle size, ...