I was looking at useFetcher. It works for json. I didn't enconter a way to process the return myself. Have you tried useFetcher ?
I misunderstood the useFetcher mechanism. fetcher.load(href) is called on route. And triggers the loader function. So no problem with toJson being called . My mistake.
yeah I'm thinking about how we could migrate to react-router, if at all. I think the model seems good
yeah I know there are lots of changes between react router versions. it does seem like they've eventually landed on a good model, though. and they have funding
tbh, it’s been a known issue that the nested routing in react-router leads to waterfall requests that was one of the main criticisms of their v3->v4 changes https://medium.com/@taion/react-routing-and-data-fetching-ec519428135c above video makes it seem like these are novel solutions driven by Remix’s design, rather than problems they’ve neglected despite lots of breaking changes in a few years time
^ above is only in regards to the router, as Remix itself does have great ideas and they’re great a explaining them!