Remix SPA modeとtype safe routing
同僚がシェアしてくれた。
https://remix.run/docs/en/main/future/spa-mode
まだ unstable だけど
Remix
に SPA mode なるものが実装された模様
https://github.com/yesmeck/remix-routes
その Remix の routing を type safe にしてくれるプラグイン