denoland / fresh

The next-gen web framework.
https://fresh.deno.dev
MIT License
12.17k stars 623 forks source link

Plugin routes don't support RouteConfig #2296

Open deer opened 7 months ago

deer commented 7 months ago

I wanted to create a special partials route to load just the right content and expose that with a plugin. Sad times when I spent too much time debugging why the _app wrapper was getting included, even though I clearly had the following in my route:

export const config: RouteConfig = {
  skipAppWrapper: true,
  skipInheritedLayouts: true,
};

Eventually I realized that PluginRoute is missing something like config?: RouteConfig;, and so of course it wasn't being used.