You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On the routes tab, if you have a resource route and click the button to open the route, it will open in the same window, but data from the resource route is not shown as it requires a full browser reload to work.
Not sure how you are parsing for information, and you are probably well aware of this, but in case you're not, the basic definition of a resource route is one that does not export a default component, so it should be somewhat simple to detect I think.
@houmark I'm fully aware, the issue is that the remix context doesn't expose this information until the route itself is mounted (which it's not on the routes page) so I would probably have to include remix forge into this to check beforehand or do some hacking so it's not really as simple and naive as it looks. But I have this in mind and will try to find a way to do it
Activity
AlemTuzlak commentedon Jul 30, 2023
I'll see if theres a way to know if the route is a resource or not, will look into this further!
houmark commentedon Jul 31, 2023
Not sure how you are parsing for information, and you are probably well aware of this, but in case you're not, the basic definition of a resource route is one that does not export a default component, so it should be somewhat simple to detect I think.
AlemTuzlak commentedon Aug 1, 2023
@houmark I'm fully aware, the issue is that the remix context doesn't expose this information until the route itself is mounted (which it's not on the routes page) so I would probably have to include remix forge into this to check beforehand or do some hacking so it's not really as simple and naive as it looks. But I have this in mind and will try to find a way to do it