Skip to content

Conversation

@mo-fouad
Copy link

@mo-fouad mo-fouad commented Jan 1, 2024

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
Copy link

vercel bot commented Jan 1, 2024

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) Visit Preview Jan 1, 2024 3:01pm

@nandorojo
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants