2,526,006 questions
0
votes
0
answers
14
views
How to correctly use wp_enqueue_script and wp_enqueue_style in a WordPress child theme?
I am trying to add a custom CSS file (style.css) and a JavaScript file (custom-script.js) to my WordPress theme. I want to ensure I’m doing this the "WordPress way" to avoid conflicts with ...
0
votes
0
answers
20
views
Dependencies pages_read_engagement pages_show_
Dependencies
pages_read_engage
header 1
header 2
cell 1
cell 2
cell 3
cell 4
ment
pages_show_
0
votes
0
answers
30
views
How can I enforce server-side step completion before allowing access to a route in Next.js?
I’m building a Next.js application where users must complete a required step (for example, identity verification or a comprehension step) before being allowed to access certain protected routes.
The ...
0
votes
1
answer
34
views
Uncaught TypeError: Failed to resolve module specifier "firebase/database" in client-side Firebase setup
I’m trying to configure Firebase Realtime Database on the client side using the following code:
import { initializeApp } from "firebase/app";
import { getDatabase } from "firebase/...
-1
votes
0
answers
54
views
Can you force a React state update?
I have a React project and in short I have a selector that selects projects. When a project is selected it should be set as selected and should start loading it's Revit version in the background (...
0
votes
0
answers
28
views
Interceptor failing to ingest localStorage variable and pass it to service
Problem
I have a token object stored in localStorage:
{
accessToken: string
idToken: string
refreshToken: string
}
When I resfresh the page I have the following interceptor built:
import {...
0
votes
0
answers
30
views
How to mock setTimeOut in a Jest unit test?
In my application I need to ensure that an array of Promises will be executed in the order as given in the array. Addtionally, the application shall "wait" a certain time after each Promise ...
0
votes
0
answers
127
views
Is it possible to use an HTML canvas as a CSS mask? [closed]
I am working on a website, and I want to make the headings have an underline with an animated fog mask so random parts gradually fade in and out. Below is a mock-up of what I want to achieve:
I was ...
0
votes
0
answers
38
views
Can't send the refresh cookie from my ReactJS frontend to the Django backend [duplicate]
when i login the refresh cookies is set like that :
response.set_cookie(
key="refresh",
value=str(refresh),
httponly=True,
secure=False,
samesite="None",
...
Advice
0
votes
4
replies
33
views
Need help regarding open source contribution as a beginner
I am in a phase where I select a repo that is perfect for me. A problem arises when I pick an issue from the repo, then I go blank on how to approach it. So my main question is how to solve that issue,...
1
vote
1
answer
52
views
Unable to get RECAPTCHA response properly
I'm trying to get a RECAPTCHA v2 request + response in my web project but so far I've got a lengthy g-recaptcha-response in my URL when I trigger the captcha action in my project. I'll provide the ...
Advice
0
votes
5
replies
50
views
What is my nameless "function"'s name in JavaScript?
Ok, let me start by stating some facts, then comes my question.
Functions in JavaScript can optionally have names themselves:
(function f1() {}).name
yields 'f1', because the function has a name when ...
-3
votes
0
answers
61
views
How can I implement Letter Boxed word validation in JavaScript? [closed]
I’m working on a small browser-based version of the NYT Letter Boxed game.
The game rules are:
Players create words using letters from a “box” of letters.
Each word must start with the last letter of ...
1
vote
0
answers
46
views
Why does my Cloudflare Worker still throw “No such module 'node:fs' / 'fs'” even with nodejs_compat enabled?
I’m trying to use a Node.js library inside a Cloudflare Worker (deployed with Wrangler).
My wrangler.toml:
name = "my-worker"
main = "src/index.ts"
compatibility_date = "2025-...
1
vote
1
answer
67
views
Why do I need to refresh my page to see changes in UI after updating watchlist, even though the database updates correctly?
I'm building a stock dashboard using Next.js 13 (App Router) with React Server and Client Components. I have a "watchlist" feature where users can add/remove stocks, and the changes are ...