Questions tagged [state-management]

1074 questions
5
votes
3 answers

Is ViewBag and ViewData also part of state management in asp.net mvc?

Can somebody please tell me that whether ViewData and ViewBag are also part of asp.net mvc state management or not? Thanks
Jitender Kumar
  • 2,439
  • 4
  • 29
  • 43
5
votes
2 answers

Ember outlet bound to StateManager doesn't render after changing state twice

I've setup a State Manager for tracking user login state, based on this answer here: Change Navbar based on login state However, I'd like to take it to the next step and have not only the navbar update according to the state, but the main template…
Ben
  • 16,124
  • 22
  • 77
  • 122
4
votes
4 answers

Storing DataSet in ViewState or Session State

Currently I am storing the DataSet in a ViewState but, this may have an impact on the performance of the page. Can you suggest me whether I can use Session or ViewState or any alternative by which it doesn't impact the performance?
mehul9595
  • 1,925
  • 7
  • 32
  • 55
4
votes
1 answer

How do I pass data from server component to client component in Next.js 13 app router?

How to pass data from the server component to the client component in Next.js 13 app router? I am calling an external API in page.tsx which gives the city of the person. I want to pass this city to the client component where this city can be…
4
votes
4 answers

Will Angular Signals replace NgRx (a bit)?

I read a lot about Signals which will be released with Angular 16 and did already some coding with it. Pretty awesome! I heard (and believe) it will probably replace almost all RxJs Code expect async related stuff like fetching an API. My question:…
4
votes
2 answers

How performant is Vue 3 provide/inject?

I work on a project that leans on an app-level provide for global state management. At first, the provided object was small, but it has grown with the project. How much does app performance suffer for injecting this object where it's data is needed?…
Zach M.
  • 74
  • 8
4
votes
1 answer

Flutter: Many bloc providers cluttering widget tree

Im making a type of chat app, and has a need for multiple blocs/repositories/etc. This has lead to my widget tree looking like this: And also has lead to a nasty looking build method in my main.dart: @override Widget build(BuildContext context)…
4
votes
1 answer

Why most of the codes use Provider package and don't use GetX/Riverpod/Bloc?

I am learning Flutter. Most of the tutorials use Provider package but some others on Youtube use GetX. I searched about it and found that it seems there are another packages like Bloc, Riverpod, etc. I am confused and don't know which one to use? It…
4
votes
2 answers

Is there a way to update the value of state provider in river pod after declaring it

final itemCountProvider = StateProvider((ref) { return 0; }); i need to keep track of number of items selected in my project initially the item count would be zero but later on i need to give it the calculated value how to update the value…
Likhith M
  • 41
  • 2
  • 6
4
votes
1 answer

flutter getx, getview with two controllers

I'm a little bit confused with how GetView works. I currently have a page that needs to have at least 2 different controllers. From what I've seen, people mostly use GetView as opposed to Get.find() for better code format, however GetView seems to…
4
votes
2 answers

Flutter bloc is not rebuilding in 7.2.0 version with Equatable

I created simple app to test bloc 7.2.0 and faced that BlocBuilder doesn't rebuild after first successful rebuild. On every other trigger bloc emits new state, but BlocBuilder ignores it. Please note, if I remove extends Equatable and its override…
Preckrasno
  • 2,435
  • 1
  • 10
  • 20
4
votes
3 answers

can I use Getx and Bloc state management in one project ( Social Network app , big project ) without problems?

My project is a Social network hybrid mobile app that is made with flutter, dart ( frontend ) and Nodejs as a backend, the point that I hired front end developers that made part of the project ( 35 % of the project ) using GetX as state Management,…
4
votes
3 answers

Flutter BLoC: Are Cubits better then BLoC?

I'm working with Flutter quite a long time and have a bunch of released products. I never really liked BLoC and preferred to use Provider or later Riverpod. I just don't understand that event concept. Why do we still need it? And i'm confused…
Max Orlov
  • 73
  • 1
  • 8
4
votes
3 answers

Is it allowed to add event to another bloc from inside of a bloc?

I am using bloc library available in Dart to implement "bloc" pattern. I will eventually move onto flutter_bloc library so I can use it inside a real app. I'm having a bit of difficulty understanding how to create some general blocs that can be…
user3056783
  • 2,265
  • 1
  • 29
  • 55
4
votes
1 answer

Error: Type argument 'RoutesBloc' doesn't conform to the bound 'BlocBase' of the type variable 'B' on 'BlocBuilder'

I'm getting this error and I have no clue where it's coming from. class Routes extends StatelessWidget { @override Widget build(BuildContext context) { return BlocBuilder( // <-- It occurs here builder:…
Matthias
  • 3,729
  • 22
  • 37