Comments (4)
Please give us initState for living!
from flutter_built_redux.
The more I think about it, the more I think initState
would be an excellent feature for this library, but I'm not sure what the right way to implement it is. @davidmarne if you can point me in the right direction, I would be happy to work on a PR if you agree?
from flutter_built_redux.
My solution to this has been to create a child stateful widget in between my StoreConnection and the widget that I would normally pass straight to builder:
.
I can then override initState on that widget which gives me a place to dispatch my action. It's a bit tediously boilerplate, but it works.
from flutter_built_redux.
@smiLLe has a great PR (38) which solves these issues by including these really useful callbacks onInit
, onFirstBuild
, onDidChange
, onDispose
which are present in the original flutter_redux package. For me these are pretty much essential, and not sure why they're not merged into main yet.
from flutter_built_redux.
Related Issues (20)
- Update built_value to >= 4 <= 6 ? HOT 2
- AnalysisException: Cannot compute LIBRARY_ELEMENT for Instance of 'AssetBasedSource' HOT 3
- Cannot resolve class 'StreamTransformerBase' from 'MimeMultipartTransformer' HOT 4
- Don't use the WidgetBuilder name HOT 6
- How to: store.actionStream example HOT 1
- Where should I listen to events? HOT 4
- 'flutter packages get' always not responding. HOT 3
- Question: Is the example up-to-date? HOT 1
- Nested State does not update the UI HOT 2
- Need update to flutter engine 2.0 HOT 2
- Example of using the Navigator HOT 1
- Question: Best approach for widget testing
- support for flutter sdk 2.1.0.dev
- support for flutter sdk 2.1.0.dev
- Unsubscribe to state when not active route? HOT 1
- support for flutter sdk 2.1.0.dev
- Incompatible with built_redux 8.0.0-nullsafety.0
- Cannot build app after migrating to Flutter 2.0.0 HOT 1
- support for flutter sdk 2.1.0.dev
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutter_built_redux.