nandorojo / solito

🧍‍♂️ React Native + Next.js, unified.
https://solito.dev
MIT License
3.54k stars 180 forks source link

using Next App Directory #457

Open mo-fouad opened 10 months ago

mo-fouad commented 10 months ago

I was trying to use Next-App-Directory so I tried to add more useRouter from 'next/navigation' in Solito, I started to add separate files in router folder in Solito to create useAppRouter hook,

But I got stuck with understanding the logic of useMemo part, Also I did not know how to test this in a real application,

I am wondering if this is the right direction to make this or not, could you please direct me to the right track ?!

Thanks

vercel[bot] commented 10 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
solito-app ❌ Failed (Inspect) Jan 1, 2024 3:01pm
1 Ignored Deployment | Name | Status | Preview | Comments | Updated (UTC) | | :--- | :----- | :------ | :------- | :------ | | **solito** | ⬜️ Ignored ([Inspect](https://vercel.com/fernandorojo/solito/BjGPRVP4JXm4ELNF8j4CYUVjHigV)) | [Visit Preview](https://solito-git-fork-mo-fouad-using-next-app-folder-fernandorojo.vercel.app) | | Jan 1, 2024 3:01pm |
nandorojo commented 10 months ago

Why don't you just import the existing useRouter from solito/navigation?