{"id":17361287,"url":"https://github.com/inside/router-query","last_synced_at":"2025-03-27T16:43:56.391Z","repository":{"id":66934748,"uuid":"601190248","full_name":"inside/router-query","owner":"inside","description":null,"archived":false,"fork":false,"pushed_at":"2023-02-13T15:03:15.000Z","size":21,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-01T20:25:37.208Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/inside.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-02-13T14:56:35.000Z","updated_at":"2023-02-13T15:03:20.000Z","dependencies_parsed_at":"2023-02-22T19:30:16.478Z","dependency_job_id":null,"html_url":"https://github.com/inside/router-query","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inside%2Frouter-query","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inside%2Frouter-query/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inside%2Frouter-query/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inside%2Frouter-query/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/inside","download_url":"https://codeload.github.com/inside/router-query/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245886911,"owners_count":20688745,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-15T19:32:20.666Z","updated_at":"2025-03-27T16:43:56.368Z","avatar_url":"https://github.com/inside.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Install with `npm install --legacy-peer-deps`\n\nThis repo demonstrates:\n\n1. how a custom server, with a page **without** getInitialProps, with next-routes **incorrectly** populate `router.query`\n    1. From the index page, click on `Go to \"a\"`\n    1. The console logs: `from A, router.query :  {slug: 'hello-world'}`, it works because of client side navigation\n    1. Refresh the page\n    1. The console logs: `from A, router.query :  {}`, the query shouldn't be empty\n\n1. how a custom server, with a page implemeting getInitialProps, with next-routes correctly populate `router.query`\n    1. From the index page, click on `Go to \"b\"`\n    1. The console logs:\n    ```\n    from getInitialProps, ctx.query {slug: 'hello-world'}`\n    from B, router.query :  {slug: 'hello-world'}\n    ```\n    1. Refresh the page\n    1. The console logs: `from B, router.query :  {slug: 'hello-world'}`, the query is correctly populated\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finside%2Frouter-query","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finside%2Frouter-query","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finside%2Frouter-query/lists"}