Skip to main content

Questions tagged [state]

The contents of memory locations, at any given point in the program's execution, is called the program's state.

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
0 answers
16 views

Table row flickering after useReducer update

I have a table with data, that can be edited. The edition process triggers a modification in the table with useReducer. The problem is the styling. The table rows have a hover effect but useReducer ...
lenny73's user avatar
  • 21
0 votes
0 answers
19 views

IN React Native Toggle Check Box Causes Lag

In React Native I Rendered 360 CheckBoxes, While Toggling a Check Box causes Lag. If I Decrease The Check Boxes from 360 to 10 like that, its works fine. but whats problem with more check boxes, how ...
surya's user avatar
  • 5
0 votes
2 answers
116 views

Why is the status reset in Compose?

I am experiencing a very strange problem. I'm making a method to handle click events on the screen, as I want to save all the pointers in a map with their id and position, I have a state class in ...
Ludiras's user avatar
  • 424
0 votes
0 answers
16 views

State not updating in Atlassian Modal using hooks

I'd like to show a flag (a separate component) on clicking Delete button. But state doesn't get updated, so flag isn't showing up. What might be the cause? export const Modal: FC<Props> = ({ ...
isosceles triangle's user avatar
0 votes
1 answer
39 views

Flutter - How to change state of child widget when parent state is changed?

I'm new to Flutter and I've been trying to create a simple utility in my app with a few input fields that are disabled until the "Edit" button is clicked. Once it is clicked all the fields ...
ChaoticQubit's user avatar
0 votes
0 answers
42 views

Issue with Flutter setState not updating Text widget value

I'm starting to get desperate, I'm not understanding a problem related to state in Flutter. I have the following case: class Testing extends StatefulWidget { const Testing({super.key}); @override ...
Jonny's user avatar
  • 420
0 votes
0 answers
63 views

View Not Updating When @Binding Changes

I'm trying to update an item UI when it's selected, but it's not working as I would expect (I'm new to SwiftUI). I have the main view as follows: struct ContentView: View { @State private var item:...
Filipe Ramos's user avatar
  • 1,795
0 votes
2 answers
57 views

Can't bind a value of `AnyPublisher<Bool, Never>` to a `@State` variable in SwiftUI and Combine

For simplicity I have modified my project and created a reproducible code. Consider I have the following structure for Item data: struct Item: Identifiable { let id = UUID() let isChecked: ...
Mahi Al Jawad's user avatar
0 votes
1 answer
71 views

Problems trying changing states in Maui with DrawingView

I´m using a DrawView in Maui Android to get the sign of a person. I get perfectly the stream of the image, create a pdf with that image and then Navigate to the next view perfectly. I am binding the ...
hugo vazquez's user avatar
0 votes
1 answer
62 views

ForEach Statefullness Issue

In the following code, I am trying to build an exercise plan builder. Some aspects are still missing, but I've gotten to an unfortunate point where my state no longer works, likely down at the ...
Nick Molargik's user avatar
0 votes
1 answer
38 views

React Transition Not Working When Conditional Rendering Based on State Change

I have a toggle button to change the boolean state. when the state is toggled i want one particular block to appear/disappear with a transition. but the transition is not working. is there anything i'...
Abu RayhaN's user avatar
0 votes
1 answer
112 views

State both ways between Server and Client components in Next 14

I am trying to lift state up from a client component to a server component, do some stuff on the server and pass state back back down from server to client via props. I'm creating a booking system ...
Owain Williams's user avatar
0 votes
0 answers
16 views

How to useReducer with a random state? [duplicate]

I am making a game that has a random state, its a Nextjs/React app, and I'm trying to get generate a random state once the component loads through useEffect, but its being called twice somehow. I ...
user24290772's user avatar
0 votes
0 answers
20 views

React useHookState - resetState

I use useHookState for statemanagement in react. My example state got an defaultState. I want to reset my current state to the defaultState when I call resetState Is there a way that is prettier than ...
sampa's user avatar
  • 565

15 30 50 per page