{"id":15415288,"url":"https://github.com/jaredpalmer/react-conf-2018","last_synced_at":"2025-08-28T22:31:41.101Z","repository":{"id":146972068,"uuid":"154581069","full_name":"jaredpalmer/react-conf-2018","owner":"jaredpalmer","description":"React Conf 2018 Source Code for \"Moving to Suspense\" Demo","archived":false,"fork":false,"pushed_at":"2019-03-01T03:27:44.000Z","size":31887,"stargazers_count":227,"open_issues_count":0,"forks_count":29,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-12-19T06:08:09.351Z","etag":null,"topics":["react","react-suspense","spotify"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jaredpalmer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2018-10-24T23:13:56.000Z","updated_at":"2024-08-26T19:21:45.000Z","dependencies_parsed_at":"2023-11-10T23:31:08.369Z","dependency_job_id":null,"html_url":"https://github.com/jaredpalmer/react-conf-2018","commit_stats":{"total_commits":85,"total_committers":3,"mean_commits":"28.333333333333332","dds":0.04705882352941182,"last_synced_commit":"2364f1cfa76cded1e89de2a763f7a9de7d0d1fa6"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaredpalmer%2Freact-conf-2018","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaredpalmer%2Freact-conf-2018/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaredpalmer%2Freact-conf-2018/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaredpalmer%2Freact-conf-2018/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jaredpalmer","download_url":"https://codeload.github.com/jaredpalmer/react-conf-2018/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":231301992,"owners_count":18355289,"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":["react","react-suspense","spotify"],"created_at":"2024-10-01T17:07:52.775Z","updated_at":"2024-12-26T02:31:58.445Z","avatar_url":"https://github.com/jaredpalmer.png","language":"JavaScript","readme":"# Moving to React Suspense\n\nBy [Jared Palmer](https://twitter.com/jaredpalmer) at [React Conf 2018](https://conf.reactjs.org).\n\n---\n\n\nThis is the source code to the application I demo'd at React Conf 2018. It is a small slice of Spotify called Suspensify. It's built with create react app, reach router, and good ol' setState. \n\n\n- [Watch the full talk on YouTube](https://youtu.be/SCQgE4mTnjU)\n- [Download Slides](https://github.com/jaredpalmer/react-conf-2018/raw/master/MovingToReactSuspense.key)\n- [Checkout \"The Platform\"](https://github.com/palmerhq/the-platform)\n\nIt's separated into 3 folders:\n\n- `before-suspense` is the initial state of the application.\n- `conf-talk-progress` is where we end up--the final state of my talk--so you can follow along.\n- `after-suspsense` is a version where every single thing that can be moved to suspense, has been moved to suspense. I did not get this far in my talk, but it's there for completeness / reference.\n\n## Running locally\n\n```\ncd conf-talk-progress\nyarn start\n```\n\n\u003e Note the Ken Wheeler and Wale routes do not work. I didn't bother making fake data for them. Sorry. Only the Drake and Big Sean routes work (first 2 results).\n\n\n\u003e In the `patches` directory, there is a patched version of CRA's `config/webpackDevServer.config.js` that adds a little express middleware that will delay the high-res images from loading for demo purposes. It sniffs any requests including with `-hd.jpeg` and waits for the value of `delay` query parameter. The `\u003cDebugger /\u003e` request latency slider is used to set this query parameter's value for all images.\n\n\n## What's it look like?\n\n![kapture 2018-10-29 at 15 50 42](https://user-images.githubusercontent.com/4060187/47676250-789c0880-db92-11e8-8b67-e6e90f0cd5a2.gif)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaredpalmer%2Freact-conf-2018","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjaredpalmer%2Freact-conf-2018","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaredpalmer%2Freact-conf-2018/lists"}