Giter Site home page Giter Site logo

Comments (4)

brianegan avatar brianegan commented on July 19, 2024

Heya, sorry about the delay -- somehow missed this notification! Have you played around with the combineReducers + TypedReducer stuff at all? https://github.com/johnpryan/redux.dart/blob/master/doc/combine_reducers.md

That, in combination with something like a copyWith method to emulate the spread operator in a type-safe way might help out here. (https://github.com/brianegan/flutter_architecture_samples/blob/master/example/redux/lib/models/app_state.dart#L23)?

That would allow you to handle the actions you care about without creating a new instance each time unless it needs to change.

from flutter_redux.

brianegan avatar brianegan commented on July 19, 2024

Hey, please let me know if I can help further or if it's cool to go ahead and close this down :) Best, Brian.

from flutter_redux.

AxelMarquez avatar AxelMarquez commented on July 19, 2024

Hello Brian! Sorry for my late reply,

Many thanks for the hints! I ended up using copyWith and really liked how clear the code looks with this method. Feel free to close this.

Again many thanks, and awesome library! 😊

from flutter_redux.

brianegan avatar brianegan commented on July 19, 2024

Sure thing, glad to help, and happy it's working well for ya :)

from flutter_redux.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.