Skip to content

Translate useState hook API #341

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

Merged
merged 5 commits into from
May 28, 2022
Merged

Translate useState hook API #341

merged 5 commits into from
May 28, 2022

Conversation

jakubdrozdek
Copy link
Member

No description provided.

@github-actions
Copy link

github-actions bot commented May 27, 2022

Size Changes

📦 Next.js Bundle Analysis

This analysis was generated by the next.js bundle analysis action 🤖

One Hundred Eighty-nine Pages Changed Size

The following pages changed size from the code in this PR compared to its base branch:

Page Size (compressed) First Load
/ 117.42 KB (🟡 +20 B) 212.72 KB
/404 116.55 KB (🟡 +20 B) 211.85 KB
/apis 117.31 KB (🟡 +20 B) 212.61 KB
/apis/createcontext 119.07 KB (🟡 +20 B) 214.37 KB
/apis/reactdom 117.25 KB (🟡 +20 B) 212.55 KB
/apis/render 119.29 KB (🟡 +20 B) 214.59 KB
/apis/usecontext 125.03 KB (🟡 +20 B) 220.33 KB
/apis/usereducer 124.68 KB (🟡 +44 B) 219.98 KB
/apis/useref 122.37 KB (🟡 +20 B) 217.67 KB
/apis/usestate 130.49 KB (🟡 +2.22 KB) 225.79 KB
/blog 41.42 KB (🟡 +20 B) 136.71 KB
/blog/2013/06/02/jsfiddle-integration 127.77 KB (🟡 +20 B) 223.07 KB
/blog/2013/06/05/why-react 129.5 KB (🟡 +20 B) 224.8 KB
/blog/2013/06/12/community-roundup 129.2 KB (🟡 +20 B) 224.5 KB
/blog/2013/06/19/community-roundup-2 129.87 KB (🟡 +20 B) 225.17 KB
/blog/2013/06/21/react-v0-3-3 127.92 KB (🟡 +20 B) 223.22 KB
/blog/2013/06/27/community-roundup-3 130.24 KB (🟡 +20 B) 225.54 KB
/blog/2013/07/02/react-v0-4-autobind-by-default 128.54 KB (🟡 +20 B) 223.84 KB
/blog/2013/07/03/community-roundup-4 129.61 KB (🟡 +20 B) 224.91 KB
/blog/2013/07/11/react-v0-4-prop-validation-and-default-values 128.41 KB (🟡 +20 B) 223.71 KB
/blog/2013/07/17/react-v0-4-0 129.12 KB (🟡 +20 B) 224.42 KB
/blog/2013/07/23/community-roundup-5 130 KB (🟡 +20 B) 225.3 KB
/blog/2013/07/26/react-v0-4-1 127.88 KB (🟡 +20 B) 223.18 KB
/blog/2013/07/30/use-react-and-jsx-in-ruby-on-rails 128.49 KB (🟡 +20 B) 223.79 KB
/blog/2013/08/05/community-roundup-6 129.29 KB (🟡 +20 B) 224.59 KB
/blog/2013/08/19/use-react-and-jsx-in-python-applications 128.5 KB (🟡 +20 B) 223.8 KB
/blog/2013/08/26/community-roundup-7 129.46 KB (🟡 +20 B) 224.76 KB
/blog/2013/09/24/community-roundup-8 130.9 KB (🟡 +20 B) 226.2 KB
/blog/2013/10/03/community-roundup-9 129.83 KB (🟡 +20 B) 225.13 KB
/blog/2013/10/16/react-v0.5.0 129.51 KB (🟡 +20 B) 224.81 KB
/blog/2013/10/29/react-v0-5-1 127.87 KB (🟡 +20 B) 223.17 KB
/blog/2013/11/06/community-roundup-10 131.49 KB (🟡 +20 B) 226.79 KB
/blog/2013/11/18/community-roundup-11 130.57 KB (🟡 +20 B) 225.87 KB
/blog/2013/12/18/react-v0.5.2-v0.4.2 128.34 KB (🟡 +20 B) 223.64 KB
/blog/2013/12/19/react-v0.8.0 128.77 KB (🟡 +20 B) 224.07 KB
/blog/2013/12/23/community-roundup-12 130.22 KB (🟡 +20 B) 225.52 KB
/blog/2013/12/30/community-roundup-13 130.01 KB (🟡 +20 B) 225.31 KB
/blog/2014/01/02/react-chrome-developer-tools 128.26 KB (🟡 +20 B) 223.56 KB
/blog/2014/01/06/community-roundup-14 129.6 KB (🟡 +20 B) 224.9 KB
/blog/2014/02/05/community-roundup-15 130.82 KB (🟡 +20 B) 226.12 KB
/blog/2014/02/15/community-roundup-16 130.53 KB (🟡 +20 B) 225.83 KB
/blog/2014/02/16/react-v0.9-rc1 130.94 KB (🟡 +20 B) 226.24 KB
/blog/2014/02/20/react-v0.9 131.38 KB (🟡 +20 B) 226.68 KB
/blog/2014/02/24/community-roundup-17 130.25 KB (🟡 +20 B) 225.54 KB
/blog/2014/03/14/community-roundup-18 131.21 KB (🟡 +20 B) 226.51 KB
/blog/2014/03/19/react-v0.10-rc1 129.52 KB (🟡 +20 B) 224.82 KB
/blog/2014/03/21/react-v0.10 129.54 KB (🟡 +20 B) 224.84 KB
/blog/2014/03/28/the-road-to-1.0 129.65 KB (🟡 +20 B) 224.95 KB
/blog/2014/04/04/reactnet 128.3 KB (🟡 +20 B) 223.6 KB
/blog/2014/05/06/flux 128.42 KB (🟡 +20 B) 223.72 KB
/blog/2014/05/29/one-year-of-open-source-react 128.65 KB (🟡 +20 B) 223.95 KB
/blog/2014/06/27/community-roundup-19 130.19 KB (🟡 +20 B) 225.49 KB
/blog/2014/07/13/react-v0.11-rc1 130.57 KB (🟡 +20 B) 225.87 KB
/blog/2014/07/17/react-v0.11 131.83 KB (🟡 +20 B) 227.13 KB
/blog/2014/07/25/react-v0.11.1 128.78 KB (🟡 +20 B) 224.08 KB
/blog/2014/07/28/community-roundup-20 130.33 KB (🟡 +20 B) 225.63 KB
/blog/2014/07/30/flux-actions-and-the-dispatcher 129.97 KB (🟡 +20 B) 225.27 KB
/blog/2014/08/03/community-roundup-21 130 KB (🟡 +20 B) 225.3 KB
/blog/2014/09/03/introducing-the-jsx-specification 128 KB (🟡 +20 B) 223.3 KB
/blog/2014/09/12/community-round-up-22 130.48 KB (🟡 +20 B) 225.78 KB
/blog/2014/09/16/react-v0.11.2 128.78 KB (🟡 +20 B) 224.08 KB
/blog/2014/09/24/testing-flux-applications 131.96 KB (🟡 +20 B) 227.26 KB
/blog/2014/10/14/introducing-react-elements 130.91 KB (🟡 +20 B) 226.21 KB
/blog/2014/10/16/react-v0.12-rc1 130.88 KB (🟡 +20 B) 226.18 KB
/blog/2014/10/17/community-roundup-23 131.45 KB (🟡 +20 B) 226.75 KB
/blog/2014/10/27/react-js-conf 128.05 KB (🟡 +20 B) 223.35 KB
/blog/2014/10/28/react-v0.12 130.82 KB (🟡 +20 B) 226.12 KB
/blog/2014/11/24/react-js-conf-updates 128.44 KB (🟡 +20 B) 223.74 KB
/blog/2014/11/25/community-roundup-24 131.68 KB (🟡 +20 B) 226.98 KB
/blog/2014/12/18/react-v0.12.2 128.46 KB (🟡 +20 B) 223.76 KB
/blog/2014/12/19/react-js-conf-diversity-scholarship 128.86 KB (🟡 +20 B) 224.16 KB
/blog/2015/01/27/react-v0.13.0-beta-1 129.83 KB (🟡 +20 B) 225.13 KB
/blog/2015/02/18/react-conf-roundup-2015 131.81 KB (🟡 +20 B) 227.11 KB
/blog/2015/02/20/introducing-relay-and-graphql 130.96 KB (🟡 +20 B) 226.26 KB
/blog/2015/02/24/react-v0.13-rc1 129.87 KB (🟡 +20 B) 225.17 KB
/blog/2015/02/24/streamlining-react-elements 132.42 KB (🟡 +20 B) 227.72 KB
/blog/2015/03/03/react-v0.13-rc2 129.2 KB (🟡 +20 B) 224.5 KB
/blog/2015/03/04/community-roundup-25 130.16 KB (🟡 +20 B) 225.46 KB
/blog/2015/03/10/react-v0.13 130.48 KB (🟡 +20 B) 225.78 KB
/blog/2015/03/16/react-v0.13.1 128.3 KB (🟡 +20 B) 223.6 KB
/blog/2015/03/19/building-the-facebook-news-feed-with-relay 131.06 KB (🟡 +20 B) 226.36 KB
/blog/2015/03/26/introducing-react-native 128.2 KB (🟡 +20 B) 223.5 KB
/blog/2015/03/30/community-roundup-26 130.13 KB (🟡 +20 B) 225.43 KB
/blog/2015/04/17/react-native-v0.4 129.04 KB (🟡 +20 B) 224.34 KB
/blog/2015/04/18/react-v0.13.2 128.38 KB (🟡 +20 B) 223.68 KB
/blog/2015/05/01/graphql-introduction 132.87 KB (🟡 +20 B) 228.17 KB
/blog/2015/05/08/react-v0.13.3 128.27 KB (🟡 +20 B) 223.57 KB
/blog/2015/05/22/react-native-release-process 128.42 KB (🟡 +20 B) 223.72 KB
/blog/2015/06/12/deprecating-jstransform-and-react-tools 128.87 KB (🟡 +20 B) 224.17 KB
/blog/2015/07/03/react-v0.14-beta-1 130.38 KB (🟡 +20 B) 225.68 KB
/blog/2015/08/03/new-react-devtools-beta 128.98 KB (🟡 +20 B) 224.28 KB
/blog/2015/08/11/relay-technical-preview 129.05 KB (🟡 +20 B) 224.35 KB
/blog/2015/08/13/reacteurope-roundup 130.64 KB (🟡 +20 B) 225.94 KB
/blog/2015/09/02/new-react-developer-tools 128.4 KB (🟡 +20 B) 223.7 KB
/blog/2015/09/10/react-v0.14-rc1 134.08 KB (🟡 +20 B) 229.38 KB
/blog/2015/09/14/community-roundup-27 130.56 KB (🟡 +20 B) 225.86 KB
/blog/2015/10/01/react-render-and-top-level-api 129.53 KB (🟡 +20 B) 224.83 KB
/blog/2015/10/07/react-v0.14 134.57 KB (🟡 +20 B) 229.87 KB
/blog/2015/10/19/reactiflux-is-moving-to-discord 130.28 KB (🟡 +20 B) 225.58 KB
/blog/2015/10/28/react-v0.14.1 128.29 KB (🟡 +20 B) 223.59 KB
/blog/2015/11/02/react-v0.14.2 128.32 KB (🟡 +20 B) 223.62 KB
/blog/2015/11/18/react-v0.14.3 128.45 KB (🟡 +20 B) 223.75 KB
/blog/2015/12/04/react-js-conf-2016-diversity-scholarship 129.32 KB (🟡 +20 B) 224.62 KB
/blog/2015/12/16/ismounted-antipattern 128.92 KB (🟡 +20 B) 224.22 KB
/blog/2015/12/18/react-components-elements-and-instances 132.84 KB (🟡 +20 B) 228.14 KB
/blog/2015/12/29/react-v0.14.4 128.11 KB (🟡 +20 B) 223.41 KB
/blog/2016/01/08/A-implies-B-does-not-imply-B-implies-A 129.13 KB (🟡 +20 B) 224.43 KB
/blog/2016/01/12/discontinuing-ie8-support 127.94 KB (🟡 +20 B) 223.24 KB
/blog/2016/02/19/new-versioning-scheme 129.32 KB (🟡 +20 B) 224.62 KB
/blog/2016/03/07/react-v15-rc1 132.07 KB (🟡 +20 B) 227.37 KB
/blog/2016/03/16/react-v15-rc2 128.93 KB (🟡 +20 B) 224.23 KB
/blog/2016/03/29/react-v0.14.8 128.07 KB (🟡 +20 B) 223.37 KB
/blog/2016/04/07/react-v15 136.26 KB (🟡 +20 B) 231.56 KB
/blog/2016/04/08/react-v15.0.1 128.82 KB (🟡 +20 B) 224.12 KB
/blog/2016/07/11/introducing-reacts-error-code-system 128.54 KB (🟡 +20 B) 223.84 KB
/blog/2016/07/13/mixins-considered-harmful 136.69 KB (🟡 +20 B) 231.99 KB
/blog/2016/07/22/create-apps-with-no-configuration 132.02 KB (🟡 +20 B) 227.32 KB
/blog/2016/08/05/relay-state-of-the-state 132.06 KB (🟡 +20 B) 227.36 KB
/blog/2016/09/28/our-first-50000-stars 133.51 KB (🟡 +20 B) 228.81 KB
/blog/2016/11/16/react-v15.4.0 131.46 KB (🟡 +20 B) 226.76 KB
/blog/2017/04/07/react-v15.5.0 132.02 KB (🟡 +20 B) 227.32 KB
/blog/2017/05/18/whats-new-in-create-react-app 131.42 KB (🟡 +20 B) 226.72 KB
/blog/2017/06/13/react-v15.6.0 130.04 KB (🟡 +20 B) 225.34 KB
/blog/2017/07/26/error-handling-in-react-16 130.39 KB (🟡 +20 B) 225.69 KB
/blog/2017/09/08/dom-attributes-in-react-16 130.82 KB (🟡 +20 B) 226.12 KB
/blog/2017/09/25/react-v15.6.2 129.16 KB (🟡 +20 B) 224.46 KB
/blog/2017/09/26/react-v16.0 134.28 KB (🟡 +20 B) 229.58 KB
/blog/2017/11/28/react-v16.2.0-fragment-support 132.22 KB (🟡 +20 B) 227.52 KB
/blog/2017/12/07/introducing-the-react-rfc-process 128.74 KB (🟡 +20 B) 224.04 KB
/blog/2017/12/15/improving-the-repository-infrastructure 144.53 KB (🟡 +20 B) 239.83 KB
/blog/2018/03/01/sneak-peek-beyond-react-16 128.69 KB (🟡 +20 B) 223.99 KB
/blog/2018/03/27/update-on-async-rendering 133.93 KB (🟡 +20 B) 229.23 KB
/blog/2018/03/29/react-v-16-3 130.76 KB (🟡 +20 B) 226.06 KB
/blog/2018/05/23/react-v-16-4 130.9 KB (🟡 +20 B) 226.2 KB
/blog/2018/06/07/you-probably-dont-need-derived-state 134.55 KB (🟡 +20 B) 229.85 KB
/blog/2018/08/01/react-v-16-4-2 129.55 KB (🟡 +20 B) 224.85 KB
/blog/2018/09/10/introducing-the-react-profiler 131.16 KB (🟡 +20 B) 226.46 KB
/blog/2018/10/01/create-react-app-v2 131.63 KB (🟡 +20 B) 226.93 KB
/blog/2018/10/23/react-v-16-6 130.83 KB (🟡 +20 B) 226.13 KB
/blog/2018/11/13/react-conf-recap 128.54 KB (🟡 +20 B) 223.84 KB
/blog/2018/11/27/react-16-roadmap 134.74 KB (🟡 +20 B) 230.04 KB
/blog/2018/12/19/react-v-16-7 129.67 KB (🟡 +20 B) 224.97 KB
/blog/2019/02/06/react-v16.8.0 131.93 KB (🟡 +20 B) 227.23 KB
/blog/2019/02/23/is-react-translated-yet 131.5 KB (🟡 +20 B) 226.8 KB
/blog/2019/08/08/react-v16.9.0 134.43 KB (🟡 +20 B) 229.73 KB
/blog/2019/08/15/new-react-devtools 129.04 KB (🟡 +20 B) 224.34 KB
/blog/2019/10/22/react-release-channels 130.86 KB (🟡 +20 B) 226.16 KB
/blog/2019/11/06/building-great-user-experiences-with-concurrent-mode-and-suspense 135.55 KB (🟡 +20 B) 230.85 KB
/blog/2020/02/26/react-v16.13.0 131.77 KB (🟡 +20 B) 227.07 KB
/blog/2020/08/10/react-v17-rc 138.06 KB (🟡 +20 B) 233.36 KB
/blog/all 57.42 KB (🟡 +20 B) 152.71 KB
/community 117.11 KB (🟡 +20 B) 212.41 KB
/community/acknowledgements 118.31 KB (🟡 +20 B) 213.61 KB
/community/meet-the-team 119 KB (🟡 +20 B) 214.3 KB
/learn 123.25 KB (🟡 +20 B) 218.55 KB
/learn/add-react-to-a-website 123.41 KB (🟡 +20 B) 218.71 KB
/learn/adding-interactivity 123.77 KB (🟡 +34 B) 219.07 KB
/learn/choosing-the-state-structure 129.48 KB (🟡 +20 B) 224.78 KB
/learn/conditional-rendering 122.66 KB (🟡 +20 B) 217.96 KB
/learn/describing-the-ui 121.7 KB (🟡 +20 B) 217 KB
/learn/editor-setup 118.8 KB (🟡 +20 B) 214.1 KB
/learn/escape-hatches 116.45 KB (🟡 +20 B) 211.75 KB
/learn/extracting-state-logic-into-a-reducer 127.13 KB (🟡 +20 B) 222.43 KB
/learn/importing-and-exporting-components 120.81 KB (🟡 +20 B) 216.11 KB
/learn/installation 118.01 KB (🟡 +20 B) 213.31 KB
/learn/javascript-in-jsx-with-curly-braces 120.9 KB (🟡 +20 B) 216.2 KB
/learn/keeping-components-pure 124.33 KB (🟡 +20 B) 219.63 KB
/learn/managing-state 123.06 KB (🟡 +29 B) 218.36 KB
/learn/manipulating-the-dom-with-refs 125.29 KB (🟡 +20 B) 220.59 KB
/learn/passing-data-deeply-with-context 124.85 KB (🟡 +20 B) 220.15 KB
/learn/passing-props-to-a-component 125.14 KB (🟡 +20 B) 220.44 KB
/learn/preserving-and-resetting-state 127.87 KB (🟡 +29 B) 223.17 KB
/learn/queueing-a-series-of-state-updates 121.69 KB (🟡 +20 B) 216.99 KB
/learn/react-developer-tools 118.03 KB (🟡 +20 B) 213.33 KB
/learn/reacting-to-input-with-state 126.3 KB (🟡 +20 B) 221.6 KB
/learn/referencing-values-with-refs 123.21 KB (🟡 +20 B) 218.51 KB
/learn/render-and-commit 120.18 KB (🟡 +20 B) 215.48 KB
/learn/rendering-lists 124.27 KB (🟡 +20 B) 219.57 KB
/learn/responding-to-events 123.21 KB (🟡 +20 B) 218.51 KB
/learn/scaling-up-with-reducer-and-context 121.26 KB (🟡 +20 B) 216.56 KB
/learn/sharing-state-between-components 122.35 KB (🟡 +20 B) 217.65 KB
/learn/start-a-new-react-project 119.3 KB (🟡 +20 B) 214.6 KB
/learn/state-a-components-memory 127.42 KB (🟡 +20 B) 222.72 KB
/learn/state-as-a-snapshot 121 KB (🟡 +20 B) 216.3 KB
/learn/thinking-in-react 124.14 KB (🟡 +20 B) 219.44 KB
/learn/updating-arrays-in-state 125.29 KB (🟡 +32 B) 220.59 KB
/learn/updating-objects-in-state 125.03 KB (🟡 +38 B) 220.33 KB
/learn/writing-markup-with-jsx 121.25 KB (🟡 +20 B) 216.55 KB
/learn/your-first-component 121.97 KB (🟡 +20 B) 217.27 KB
Details

Only the gzipped size is provided here based on an expert tip.

First Load is the size of the global bundle plus the bundle for the individual page. If a user were to show up to your website and land on a given page, the first load size represents the amount of javascript that user would need to download. If next/link is used, subsequent page loads would only need to download that page's bundle (the number in the "Size" column), since the global bundle has already been downloaded.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

Next to the size is how much the size has increased or decreased compared with the base branch of this PR. If this percentage has increased by 10% or more, there will be a red status indicator applied, indicating that special attention should be given to this.

@jakubdrozdek jakubdrozdek marked this pull request as ready for review May 28, 2022 23:05
@jakubdrozdek jakubdrozdek requested a review from a team May 28, 2022 23:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant