Skip to main content

All Questions

Tagged with
0 votes
1 answer
34 views

I cannot update state, because DND kit in react

I have an issue using the deleteProyect function, when the client clicks the button, the component does not eliminate the object in the array unless yo click as fast as you can, so it could be ...
user25357387's user avatar
0 votes
0 answers
33 views

Solid JS Trouble Passing Information from Child to Child

I've created a card component that has its background image set from its parent component. These cards act as buttons to open modals with more details and share an image. I don't want the modal ...
Todd Holford's user avatar
0 votes
1 answer
166 views

How to prevent component unmounting/remounting on nextjs

In my nextjs 14 app I have a Chat component that shouldn't unmount/remount. The issue is that on my mobile screen I created a button that expands the chat and a button to close the chat. When I expand/...
Ignacio García's user avatar
0 votes
1 answer
102 views

React TypeScript: Preventing component restart when switching tabs in app

I'm developing a React TypeScript application where I've implemented tabbed content, similar to a browser. Each tab contains a component, and I've encountered an issue where switching tabs causes the ...
Aleks Marinič's user avatar
0 votes
0 answers
17 views

State Not Updating in React Functional Component [duplicate]

I'm encountering an issue with updating state in my React functional component. I have a simple component where I'm trying to toggle a boolean state (isOpen) when a button is clicked. However, the ...
James Brown's user avatar
0 votes
1 answer
145 views

Prevent react native component from re-rendering on every state change

I have a component witch should either show A or B based on whether the user is nearby a certain location. I created a custom hook for retrieving the value of the user being nearby. My problem is that ...
Flip's user avatar
  • 1
0 votes
0 answers
31 views

My Select state is being updated in the select component, but not his value

In my application I have two select one for the years and another one for the month, when I click on a reset button the status of both is reset to the first ones, in one of the components it restarts ...
Álvaro Vera 's user avatar
0 votes
2 answers
41 views

Why my child component is not re-rendering after addition and deletion of comments

I have singlePost component in which post is loaded now I create another component Comments, when I add or delete comment from the Comment section it is not re-rendering to show me result of that ...
Sohaib Abullah's user avatar
0 votes
1 answer
33 views

Parent Component State Array does not update properly

I am building a game on React. The first part is an array which is a state defined this way: const [mainBoard, setMainBoard] = useState( new Array(9).fill({ val: null, disabled: false }) ); ...
Usman Khalid Mian's user avatar
1 vote
2 answers
27 views

React rerendering

I have component const ComponentA: React.FC<ComponentAProps> = (props) => { const [invalidFields, setInvalidFields] = React.useState([]); return ( <ComponentB invalidInputs = {...
Feuerschinken's user avatar
0 votes
2 answers
307 views

In Angular (9+), is there a way for each instance of a shared component to maintain its own, unique state?

I've created an Angular component for a dynamic tree-like design. The idea would be that you could add/update/remove nodes (which are nothing more than an instance of the component). The reusable ...
JL Gradley's user avatar
  • 1,931
1 vote
1 answer
529 views

Adding a component to a dynamically rendered window list in React.JS

Currently running into an issue trying to render a component as a part of a list window in react.js. The way my code stands now, I have hard coded a items list which is filled with a song name just ...
AllinTheSauce's user avatar
0 votes
1 answer
185 views

How to change the prop content in a component on button click?

I click the button and the function call should change the props inside the component. Can this be done and how?
user3410646's user avatar
0 votes
0 answers
74 views

Generating a functional component declaration based on state - React / Tailwind

In the below code (SideBar.jsx), when a user clicks on a menu item, I capture the title from the Menus array and hold it in the component state. I've console logged the component state and this is ...
Jess's user avatar
  • 181
1 vote
1 answer
1k views

On page refresh I get this error: TypeError: Cannot read properties of undefined (reading 'name')

My app is working fine and I can refresh other pages. But when I refresh the page where an event is being edited (EditEvent Component) it gives me this error message: Uncaught TypeError: Cannot read ...
angiem103's user avatar

15 30 50 per page
1
2 3 4 5
19