All Questions
Tagged with js or javascript
2,524,476 questions
Advice
0
votes
4
replies
24
views
"hello chat" Door
I'm working on some projects in Python and JS.
Lately, I decided to speed up the creation process, only stopping to fix bugs.
I found an image in the root of my backend saying "hello chat" ...
Best practices
3
votes
4
replies
70
views
How to avoid page rendering delays in PHP and JavaScript web development?
fellow developers!
I’ve been working on web development projects using PHP Native for backend and Vanilla JavaScript for frontend. Sometimes, I notice that my web pages take a noticeable time to ...
0
votes
0
answers
30
views
Violentmonkey userscript cannot get @exclude to work for specific URL
I have a userscript which changes the layout of Wikipedia to the older style by appending ?useskin=vector to the URL. The script is supposed to exclude URLs with "useskin=vector" to prevent ...
-3
votes
0
answers
53
views
Uncaught TypeError: query.data?.map is not a function [closed]
I am using React-Query and Axios for data fetching. Whenever a user navigates to a dynamic page and then navigates back with mouse click, for example backward button, it gets error:
Uncaught ...
-1
votes
0
answers
46
views
Nest.js Winston, some logs not sending to Loki
I have a Nest.js app sending logs to loki. In grafana i can see logs like LOG [NestFactory] Starting Nest application.. etc. But some others are not sent to loki.
This is mi logger config, for both, ...
0
votes
1
answer
31
views
(Non-infinite-loop) animated GIF won't restart on Firefox with the normal method
I'm trying to make an interactive button in my single-page webapp, where a non-looping animated GIF can be restarted upon a user interaction, or specifically a click.
I've looked through the Web and ...
-1
votes
1
answer
97
views
I want to make a conditional component in React but didnt work, What am I doing wrong?
I have code like this, and it works:
{(users.length === 0) ? (<></>) : (
<Pagination
sx={{ mt: '1rem' }}
page={page}
count={pagination.last_page}
...
1
vote
1
answer
58
views
Issue capturing response in http-proxy-middleware
I am writing a proxy to relay websocket messages to a backend server.
Client initiates a request over HTTP to upgrade to WS using a Sec-WebSocket-Key header. The proxy has to intercept the request and ...
0
votes
1
answer
52
views
How to toggle bootstrap nav pane from a button
I have successfully implemented a tabbed pane design with collapse for small screens.
On one of the panes I would like to include a button which toggles to another pane.
I have tried unsuccessfully ...
-2
votes
3
answers
121
views
Can I iterate over/get an iterable over multiple promises by order of their settlement?
In my code, I have a bunch of asynchronous tasks, which will be represented as Promises. Say, let those be:
let promises = myarr.map( (x) => myAsyncFn(x) );
I want to trigger some action after ...
1
vote
1
answer
55
views
Trying to build a To Do list project and when trying to add list items to my project it keeps duplicating
Hi I am a beginner to coding and I am trying to build The Odin Project To Do List . I have been stuck with this code for 2 days and this is my first time ever asking for help on a forum so please do ...
0
votes
0
answers
46
views
Embedded Flutter Dropdown/Overlay Web Element clipped by parent HTML element constraints
I am implementing Flutter Web Multi-View Embedding to integrate independent Flutter components into a React.js frontend. Following the official documentation, I am initializing each Flutter widget ...
0
votes
0
answers
57
views
Is it possible to see HTML behind a canvas where Three.js is rendered?
I made a example, here’s the link to it -
https://stackblitz.com/edit/vitejs-vite-cve3gcbr?file=package.json&terminal=dev
I tried to do this because it’s needed for this mockup.
Here’s the link to ...
-3
votes
0
answers
92
views
How can I restrict property to accept only components with specific props?
I want to create a table with a custom filter component for each column. The filter component props should implement the FilterComponentProps interface. The filter component type and its props are ...
0
votes
0
answers
68
views
React Hook Form client side validation not rendering
I have a form and in the console the errors object is populated properly but I am trying to prepar for complex forms so this being dynamoc matters
'use client'
import { get, useFieldArray, ...