79356392

Date: 2025-01-14 21:16:44
Score: 1.5
Natty:
Report link

Okay so I'm going to build a custom solution for this! It's absurd, really, not to be able to use a single codebase for an application for both web and mobile.

My thinking is to have an Environment variable that checks whether you are exporting for Capacitor or for web hosting, then dynamically choose which router to render based on that environment variable. Then from there, build custom components that wrap links, and a useHybridRouter. WIP!

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Davey