Skip to main content

All Questions

0 votes
1 answer
53 views

loading script tag manually in react project

I want to load a widget from Bookeo site into my site they provide a script tag which I have to add into my site and they handle the rest, I wrote the code and every thing is working the script tag is ...
Anas Mostafa's user avatar
-1 votes
2 answers
56 views

React context not updating value

I'm trying to call an animation but simultaneously call an async function. Once that resolves it should stop the animation console.log(context, "context value outside") //updating const ...
Red Baron's user avatar
  • 7,701
0 votes
1 answer
127 views

How can I run a function alongside an async one?

I want to kick off an async task but then have another function run that shows some animation. I can't do const myFunc = async () => { // await asyncFunc() // await animateFunc() } as it won't ...
Red Baron's user avatar
  • 7,701
0 votes
1 answer
33 views

API data not getting passed through to main function because it is asynchronous [duplicate]

I am making a web site which displays the news data using reactjs. This is my code: import Header from './components/header'; import Footer from './components/footer'; import Chart from './components/...
yousufaa's user avatar
1 vote
2 answers
230 views

Async/Await Not Working with Redux Dispatch Function in React

In this code snippet I want to know why async and await not working. This code in my component I am sure that is no errors: const { success, loading, error } = useSelector( (state) => state....
khaled saeed's user avatar
0 votes
1 answer
54 views

How to save information from an async request and use it in another async request after an event is triggered?

Part of a game I am making requires a query to gpt-4o asking whether two people have met. An inital person is provided and the user has to input the name of someone who they think has met the initial ...
Aug's user avatar
  • 1
0 votes
0 answers
50 views

React start async submit process only once

We have a form with a submit button, and the OnClick starts the submit process. This submit process is async, takes long. During that process, we should not let to start the submit again, causing ...
Zoltan Hernyak's user avatar
1 vote
1 answer
178 views

MediaStream throwing play() request was interrupted by a new load request

The browser throws this asynchronous error when I try to play my mediastream videotrack Uncaught (in promise) DOMException: The play() request was interrupted by a new load request. Here's my code: ...
kushagra kartik's user avatar
0 votes
1 answer
40 views

How to make sure state updates that are fired off in succession all execute

If I have multiple state updates that all fire off in rapid succession, the initial state updates will not fully update because they will be overridden by later state updates. How can I make it so ...
noobguy's user avatar
  • 155
0 votes
0 answers
28 views

React: Empty Array Displayed Before Asynchronous Data Fetched (Search Functionality)

I'm facing an issue with my React application's search functionality. When I submits a search term, the application initially displays an empty list of recipes. Yet by using console.log on my backend ...
yzkael's user avatar
  • 339
-4 votes
1 answer
50 views

Wait for callback to finish [duplicate]

suppose I have this React/Javascript code: const doVerifyThingy = (thingyId: string): boolean => { dispatch(verifyThingyInBE(thingyId)) .then((response) => { return response.payload ...
Dan's user avatar
  • 3
0 votes
0 answers
46 views

Async Constant Call Ignoring Fetch Request

I've bene trying to figure out why an async fetch request gets absolutely ignored in my reactjs app. Basically, I am calling integrate() which, if generates a successful status result from its ...
Ethan's user avatar
  • 2,097
-1 votes
1 answer
379 views

How do I dynamically render data into a html table in react?

I'm trying to render a list of to-do items in a html table in react. I'm currently doing this by iterating through my database rows for each to-do item: todoLogs.forEach(todoLog => { ...
Toby Hogan's user avatar
-1 votes
1 answer
30 views

How to create a async set state in reactjs?

Have a project with ReactJS using classes, like as: import { Component } from 'react'; class FooComponent extends Component { async setStateAsync(data) { return (new Promise(resolve =>...
e-info128's user avatar
  • 4,091
1 vote
0 answers
133 views

SyntaxError: Unexpected token 'async' when index.js file called

I have a node.js app running locally in netbeans. Its entry point is an app.js file: "use strict"; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ...
user1518003's user avatar

15 30 50 per page
1
2 3 4 5
69