Giter Site home page Giter Site logo

Comments (5)

yjose avatar yjose commented on May 2, 2024 1

Sure, please let us know if you have any suggestions on how we can make it better. You can add more ideas in the Discussion section.

from react-native-template-obytes.

yjose avatar yjose commented on May 2, 2024

Hey @RadouaneEzzaggab, we are using the autogenerated selectors recommended by the documentation.

I would love to hear more ideas about your approach and why it's better. But it would be great if you could create it as discussions.

from react-native-template-obytes.

RadouaneEzzaggab avatar RadouaneEzzaggab commented on May 2, 2024

Thanks for your reply @yjose, I taked a look to recommended selector i appreciate the way, but i think we have to put shallow for ensure performance no ?
Here is the example from the doc located in github : https://github.com/pmndrs/zustand

Screenshot 2023-05-17 at 15 06 55

from react-native-template-obytes.

yjose avatar yjose commented on May 2, 2024

The approach we are using will create atomic stats picks for every state in our store, which means we don't need to add shallow in this case. here is the source from the docs :

It detects changes with strict-equality (old === new) by default, this is efficient for atomic state picks.

If you want to construct objects or arrays, you need to use shallow for performance in this case; however, this is not the case for our situation.

Let me know if you still have more concerns.

from react-native-template-obytes.

RadouaneEzzaggab avatar RadouaneEzzaggab commented on May 2, 2024

Okay i that's fine, i appreciate your template so much, i hope to know how you are organizing modular or MVVM pattern in the future
Thank you @yjose

from react-native-template-obytes.

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.