Questions tagged [state-management]

1074 questions
7
votes
1 answer

Where to perform state changes with Clean Architecture in Flutter?

When using Clean Architecture with flutter we see a diagram similar to this: (I wrote MobX package as an example, but it could be anything like BLoC, Redux...) I may have a problem with this diagram since the Store resides in presentation layer and…
Sxndrome
  • 360
  • 2
  • 11
7
votes
3 answers

How to normalize deeply nested data with ngrx/entity (EntityState and EntityAdapter)

I wish to normalize data from my server so I can use it more easily with ngrx/entity. I like how ngrx/entity reduces complexity of reducers and other stuff by providing EntityState interface and EntityAdapter. However I don't find it to work good…
Street0
  • 234
  • 3
  • 15
7
votes
5 answers

React hooks: are they useful for shared state management, like e.g. Redux?

There is a hype about React hooks. Too much information and I still don't know: does the advent of hooks mean that libs like Redux can be thrown to garbage? So far, what I understood is hooks are good for stateful functional components, what about…
Nurbol Alpysbayev
  • 19,522
  • 3
  • 54
  • 89
6
votes
1 answer

Flutter BloC with nested data structure

I have a nested structure, something like this: List |-- List | |-- List This is the workflow of my app: App is opened Fetch API and display a list of Areas The user chooses an Area and go to next screen Fetch API and…
Ale
  • 2,282
  • 5
  • 38
  • 67
6
votes
2 answers

Cannot assign to read only property '0' of object '[object Array] primeng

I want to sort the data table column but, it doesn't work. below is the code and error I get.when I give a server call to backend from typescript it works. When I use state Management the sorting doesn't work.
6
votes
1 answer

Where and when should I store values in BLoC itself or its state

Context I come from Redux and I am learning the BLoC pattern for global state management. I am having troubles defining where should I store values as properties inside the BLoC class, and when I should store values inside States. Use case I have a…
Raul Mabe
  • 453
  • 5
  • 15
6
votes
1 answer

Redux - How to organize store in big application

We're developing SPA using Angular 7 in a combination with NGRX. We have migrated to NGRX a few months ago to use mainly for authentication and session data. After that, we have started moving other functionalities as well. I will describe the…
Maxian Nicu
  • 2,166
  • 3
  • 17
  • 31
6
votes
0 answers

Standard application state management for WPF applications

[Disclaimer: I come from frontend, react/angular world where i use redux/ngrx for state management.] Is there some standard way of managing application state in WPF applications? I’ve seen some use of built in commands. On the other hand, i’ve seen…
dee zg
  • 13,793
  • 10
  • 42
  • 82
6
votes
1 answer

Flutter provider loosing value when navigating to another screen

I'm new to Flutter and provider package so any assistance would be great, so the issue I have my main.dart file which is as follows: void main() => runApp( MaterialApp( debugShowCheckedModeBanner: false, theme:…
Code Ratchet
  • 5,758
  • 18
  • 77
  • 141
6
votes
2 answers

how to refresh state on Navigator.Pop or Push in flutter

Here I have two pages first is called BSP_signup_terms page and the second is Bsp_Service_page. when I am on BSP_signup_terms on that page I have to select some checkbox based on the selected checkbox it will show me some data. but problem is that…
6
votes
1 answer

How to build Angular 4 Component Library with the Angular CLI + ng-packagr + state mgmt?

Trying to wrap up my head around creating an angular node module that will have a state mgmt Ngrx. I've been building node module using this guide:…
Chris Tarasovs
  • 703
  • 2
  • 21
  • 54
6
votes
1 answer

Are there reactive state libraries like Mobx for Python?

I'm looking for reactive state libraries like Mobx for Python, i.e. on server-side rather than client-side of a web application. Mobx is similar to classic reactive libraries like RxPY, but has a different focus: It is not so much avout the…
vog
  • 23,517
  • 11
  • 59
  • 75
6
votes
2 answers

Android. Save Instance State for Dialogs?

I wonder what is the right way to implement this? Could anybody advice whether my solution is correct? So: Activity is created User clicks on button and dialog is launched (Dialog, not dialog styled activity) User opens keyboard we have…
Lyubomyr Dutko
  • 4,486
  • 7
  • 32
  • 39
5
votes
2 answers

Null Check Operator used on a null value due to provider class

I'm getting the 'null check operator used on a null value' when I try to access specific screens. I blocked out my 'user_provider' custom class as well as parts of the code where it's used and it displays normally (no red screen) but without those…
5
votes
2 answers

Riverpod: List provider is not rebuilding

Flutter riverpod is not notifying the Consumer on the state change when the StateNotifier's type is List, while the same implementation works just fine for other types. here, I provided a minimal reproducable example: import 'dart:math'; import…
Adnan
  • 906
  • 13
  • 30
1 2
3
71 72