GithubHelp home page GithubHelp logo

Realease date about solito HOT 9 CLOSED

nandorojo avatar nandorojo commented on June 18, 2024
Realease date

from solito.

Comments (9)

nandorojo avatar nandorojo commented on June 18, 2024 4

Added docs for useRouter here: https://solito.vercel.app/usage/use-router

from solito.

nandorojo avatar nandorojo commented on June 18, 2024 2

yes you can do the same with both, but solito is all about sharing the mental model across platforms. the key thing is that with solito, every navigation action is triggered via URL. this is much better, since it lets your linking config become your source of truth, rather than confusing route names in nested navigators.

from solito.

nandorojo avatar nandorojo commented on June 18, 2024 1

I'm using this lib myself now, so it's just a matter of finishing docs and examples. The code is stable to use in my experience. So I'd recommend checking out the docs so far (currently a WIP) and seeing if that's sufficient for you to get what's going on.

If not, I can't say definitively. Just depends on when I have time in the next few weeks to add docs/examples. But I'd also accept PRs for that!

If you want more context on how I arrived at this API, I recommend checking out this thread, I went in deep detail: axeldelafosse/expo-next-monorepo-example#1

from solito.

nandorojo avatar nandorojo commented on June 18, 2024 1

it's the same as next router: https://nextjs.org/docs/api-reference/next/router#routerpush

just use the pathname and query object for params. solito stringifies it into a URL for you.

from solito.

danielkv avatar danielkv commented on June 18, 2024

I'm trying to understand exactly the differences between solito and expo-next-react-navigation.

I can see the API is a little different and solito seems a little simpler. I have already tested expo-next-react-navigation and I'm going to give it a try to test the new API, but if you can give me a gist of the core differences I appreciate.

The main question is: "Can I do the same things with both?"

from solito.

nandorojo avatar nandorojo commented on June 18, 2024

solito is essentially a major version bump, since the API has breaking changes

from solito.

danielkv avatar danielkv commented on June 18, 2024

@nandorojo I'm trying to figure it out how to send params though router.push(). Do I need to parse before and generate the string before using in push method?

from solito.

nandorojo avatar nandorojo commented on June 18, 2024

I still need to add docs for that

from solito.

danielkv avatar danielkv commented on June 18, 2024

Thank you fo been so fast! I'm gonna start to convert the code today (probably). So anyway thankyou for helping the community and been so patient.

from solito.

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.