{"id":27919444,"url":"https://github.com/posva/pinia-colada-demo","last_synced_at":"2026-02-20T21:03:32.254Z","repository":{"id":286096540,"uuid":"955831817","full_name":"posva/pinia-colada-demo","owner":"posva","description":null,"archived":false,"fork":false,"pushed_at":"2025-04-04T10:32:15.000Z","size":73,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-23T20:49:30.007Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Vue","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/posva.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},"funding":{"github":"posva"}},"created_at":"2025-03-27T09:13:35.000Z","updated_at":"2025-06-26T11:04:09.000Z","dependencies_parsed_at":"2025-04-04T10:34:22.918Z","dependency_job_id":"03027101-eb78-43fc-a784-8190a34de990","html_url":"https://github.com/posva/pinia-colada-demo","commit_stats":null,"previous_names":["posva/pinia-colada-demo"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/posva/pinia-colada-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/posva%2Fpinia-colada-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/posva%2Fpinia-colada-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/posva%2Fpinia-colada-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/posva%2Fpinia-colada-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/posva","download_url":"https://codeload.github.com/posva/pinia-colada-demo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/posva%2Fpinia-colada-demo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29664440,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-20T19:49:36.704Z","status":"ssl_error","status_checked_at":"2026-02-20T19:44:05.372Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":"2025-05-06T19:30:54.293Z","updated_at":"2026-02-20T21:03:32.237Z","avatar_url":"https://github.com/posva.png","language":"Vue","funding_links":["https://github.com/sponsors/posva"],"categories":[],"sub_categories":[],"readme":"# Pinia Colada mini workshop\n\nFabriq 2025-03-27\n\n## Project Setup\n\n```sh\npnpm install\n```\n\n### Compile and Hot-Reload for Development\n\n```sh\npnpm dev\n```\n\nOr without pnpm:\n\n```sh\nnpm i\nnpm run dev:db\nnpm run dev:client\n```\n\n## Exercises\n\n- Add Pinia Colada Vue Plugin\n- Migrate contacts details to use Pinia Colada `useQuery()`\n  - Keys should be reusable\n  - play around with `staleTime` and `gcTime`\n  - Display the loading state only if the data is not available\n- Migrate the contact update to use Pinia Colada `useMutation()`\n  - Invalidate the contact and see how it automatically updates\n  - Add an optimistic update to the contact\n  - Play around with `staleTime`, changing multiple contacts and see which ones are fetched again\n  - Show a subtle loading state when the mutation is in progress\n  - Display an error if the mutation fails (change the `api/contacts.ts` to add errors)\n- Migrate the contact search to use Pinia Colada `useQuery()`\n  - Ensure keys are hierarchical (contacts -\u003e search | contacts -\u003e id)\n- Update the contact update contact to also invalidate the search results\n- Extra\n  - Debounce the search (VueUse `refDebounced`)\n  - Handle errors when fetching the contacts, add a retry button (change the `api/contacts.ts` to add errors)\n  - Extract optimistic updates into functions that can be reused\n\n## Resources\n\n- [Pinia Colada](https://pinia-colada.esm.dev/)\n- [TailwindCSS](https://tailwindcss.com/)\n- [Water.css](https://watercss.kognise.dev/)\n- [VueUse](https://vueuse.org/)\n- [Routes](https://uvr.esm.is/) (if you want to add new pages)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fposva%2Fpinia-colada-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fposva%2Fpinia-colada-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fposva%2Fpinia-colada-demo/lists"}