jarle / remix-adonisjs

Build fullstack Remix applications powered by AdonisJS
https://matstack.dev/remix-adonisjs
MIT License
49 stars 4 forks source link

Prepare for React Router 7 #67

Open jarle opened 2 months ago

HananoshikaYomaru commented 1 month ago

Hi, I just want to say a thanks to you for making this. I have been looking for remix and adonis integration and you make it very easy to use. I am very happy to see the plan to integrate react router 7 because that makes me believe that this project has received support for the future.

jarle commented 1 month ago

Thank you! I use the library for my own projects, and luckily there isn't much maintenance needed to keep it up to date 🙌

HananoshikaYomaru commented 1 month ago

I have a very huge remix project and planning to migrate to adonis. I am trying to be cautious. Is there any caveats or limitation when using remix with adonis, especially the v3 flags (single-fetch) or server context and middleware in the future?

These features are still under development but I want to know how you think about those features since middleware and server context might have overlapping with the current remix adonis setup. Do you think they will be in-compatible with each other or they will work together just fine?

jarle commented 1 month ago

I'm very positive about the upcoming changes to middleware and server context - both make it easier to integrate the adapter with Remix.

If I understand the server context correctly, it could be a drop-in replacement of how we do service providers: https://matstack.dev/remix-adonisjs/technical-details/accessing-services#setting-up-helper-functions-for-service-providers

I also believe Remix middleware will improve how we do auth middleware with AdonisJS. The current auth middleware suggestion in the docs is not pretty, so it will be improved significantly if we can declare middleware from the remix app routes.