mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2025-02-03 07:41:36 +00:00
70e382b3d9
* Pass parsed query params as props to components * Pass parsed query params to fetchInitialData * Pass router Match to fetchInitialData * Cast individual routes to their concrete types Adds an IRoutePropsWithFetch definition for routes with getQueryParams or fetchInitialData to cause compiler errors when the types no longer match. * Don't double decode query parameters. Problem: A search for "%ab" produces a url with "%25ab". Refreshing the page results in URLSearchParams turning "%25ab" back into "%ab". decodeURIComponent() then complains about "%ab" being malformed. This removes decodeURIComponent() calls for query parameters and composes all query strings with getQueryString(), which now uses URLSearchParams. Query parsing already goes through getQueryParams() which also uses URLSearchParams. * Fix for PictrsImage when src also has query params * Small getQueryParams cleanup |
||
---|---|---|
.. | ||
handlers | ||
utils | ||
index.tsx | ||
middleware.ts |