-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Web: export decodeUrlQueryParam function #42597
Conversation
@@ -90,7 +90,7 @@ export default function useServersideSearchPanel({ | |||
}; | |||
} | |||
|
|||
function decodeUrlQueryParam(param: string) { | |||
export function decodeUrlQueryParam(param: string) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we want to export this function, I think that we should find a better place for it.
The e
code that is going to relay on this function doesn't use the serverside search panel, so I think it's better to export it from a more generic place.
I'm thinking about web/packages/teleport/src/components/hooks/useUrlFiltering/decodeUrlQueryParam.ts
(and then re-export from its index.ts
).
Then I'd add a proper JSDoc comment to it.
No description provided.