2,532,946 questions
-1
votes
0
answers
13
views
Unable to create a tree view in reactjs
I am trying to create a treeview in React.js. But I am not able to set it properly. Below is my code
App.js
import React from "react";
import TreeHierarchy from "./TreeHierarchy"; /...
0
votes
0
answers
7
views
How to fix my Peaks.js component which works with direct render but not inside a page
I have a React web app using Peaks.js. When I route straight to my AudioWaveForm component through a BrowserRouter route, it works fine, but when I include it in an empty component it breaks. It still ...
0
votes
1
answer
23
views
Auth using JWT not verifying token
I am trying to make a real time chat application using web sockets and am currently working on adding user login and authentication using jwt but it just isn't working for some reason
app.get("/&...
1
vote
0
answers
8
views
Not receiving user_status_changed event
I am working with @slack/bolt, trying to get user_status_changed using Socket Mode. I can see messages when they come in but not when a user changes their status. I put myself in away or available and ...
0
votes
0
answers
8
views
How to dynamically update streak badges and rewards in a progressive web app using vanilla JavaScript efficiently?
Question:
I am building a progressive web app where users earn streak badges and rewards based on their activity. I want to dynamically update the UI when users unlock new badges, but I am concerned ...
-1
votes
0
answers
18
views
url works in browser but not from js fetch [duplicate]
Note that although this question references wikidata, it is really a javascript fetch question. Also, this is not the wikidata api. I'm just trying to load a simple page from a url.
I want to access ...
-2
votes
0
answers
19
views
Algorithm for generating meaningful names [closed]
(I am writing through a translator, if the idea of what I wanted to say gets lost, please clarify in the comments.)
How do I implement an algorithm for generating meaningful names?
Let's say that when ...
0
votes
1
answer
11
views
I have a web page including data in a table in each row beside of data I have delete button if we click on delete button it display yes,no
If I click yes it should delete the row now I want to give functionality for that delete button and if I delete that I should be delete in the database too I completed upto giving popup and I am not ...
0
votes
1
answer
15
views
How do React Native uncontrolled components manage their state?
Do these components use refs as state? When we update the component ref, do we update the DOM directly? When we update the component's ref, does the component render and show the value or the change ...
0
votes
0
answers
20
views
Canot find error who gives me "Can't bind to 'FormGroup' since it isn't a known property of 'form'." in Angular 17 [closed]
Im having this error and i cannot find where it is im following a tutorial on youtube i tried searching on google ad i get alot of examples and i tried all from adding the FormsModule with ...
0
votes
1
answer
36
views
Getting undefined when assigning string to enum in typescript
We are trying to assign a text to an enum variable but getting undefined
enum Color {
Green = "GRN",
Red = "RD"
}
let text: string = "GRN";
let test: ...
0
votes
4
answers
48
views
Javascript does not execute code right after an awaited call immediately (it does other stuff in between) after the async function returned
I'll begin by showing what should be the expected output, both from a sensible view point and because it's what happens if the functions weren't async.
about to resolve
about to return from foo
code ...
0
votes
1
answer
27
views
How to use Javascript async/await in semi-asynchronous situations? (e.g. in String.replace) [duplicate]
For example I'm doing a RegExp replacement on a body of text:
text = text.replace(re, function (match, comment, op1, op2, op3, op4, op5, op6, op7) {
if (op1 !== undefined) {
log("...
-1
votes
1
answer
17
views
JavaScript: Aync/Await not waiting until the function is fully processed multiple forEach loops with Promise.all() [duplicate]
async function fnGetVehicleList(makeCode, responseModels){
let vehicleListData = [];
await Promise.all(responseModels.Table.forEach(async (model) => {
const vehicleDetailResponse = ...
0
votes
0
answers
9
views
Need advice on how to store Encrypted verifier for PKCE auth0 workflow using Svelte kit
I’m working on an authentication workflow using SvelteKit and Auth0, and I’ve encountered a challenge that I hope someone can help me resolve.
Current Workflow:
Login Endpoint:
When a user is ...