Giter VIP home page Giter VIP logo

Comments (3)

baruchiro avatar baruchiro commented on June 7, 2024

Hi, thank you for using the library and sharing with me your concern!

First, you can open the Flow.drawio file with diagrams.net - Draw.io, to see when we assigning the default values into the returned object.

I don't remember exactly the decisions I made. Let's think.

  1. How do you expect me to support that? By adding an options object to enable showing the default values?
  2. What about you will not configure a default value, and instead, you will add a useEffect to set the value when the component is mounted? (I'm asking to understand the use-case).

from use-route-as-state.

louis-sanna-eki avatar louis-sanna-eki commented on June 7, 2024

@baruchiro

  1. I expected it to be the default behaviour.
  2. Yes you're right, a simple useEffect is enough for my use-case, I hoped there was a better way to do it.

Thanks for having taken the time to look at this issue.

(I'm leaving the issue open, but don't hesitate to close if you want)

from use-route-as-state.

baruchiro avatar baruchiro commented on June 7, 2024

OK then, thanks @louis-sanna-eki for your suggestion. I understand it, but I chose to take the another approach, which is also logical, so I will not change it for now.

Thanks again, and feel free to open other issues!

from use-route-as-state.

Related Issues (18)

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.