Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fix: infinite reloading #2405

Merged
merged 4 commits into from
May 17, 2023
Merged

fix: infinite reloading #2405

merged 4 commits into from
May 17, 2023

Conversation

himself65
Copy link
Contributor

@himself65 himself65 commented May 17, 2023

Fixes: #2381

@codesandbox
Copy link

codesandbox bot commented May 17, 2023

CodeSandbox logoCodeSandbox logo  Open in CodeSandbox Web Editor | VS Code | VS Code Insiders | Preview

@himself65 himself65 temporarily deployed to development May 17, 2023 05:23 — with GitHub Actions Inactive
@vercel
Copy link

vercel bot commented May 17, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
affine-preview 🛑 Canceled (Inspect) May 17, 2023 5:51am
affine-storybook ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 17, 2023 5:51am

@himself65 himself65 temporarily deployed to development May 17, 2023 05:23 — with GitHub Actions Inactive
@himself65 himself65 temporarily deployed to development May 17, 2023 05:23 — with GitHub Actions Inactive
@himself65 himself65 temporarily deployed to development May 17, 2023 05:23 — with GitHub Actions Inactive
@himself65 himself65 temporarily deployed to development May 17, 2023 05:23 — with GitHub Actions Inactive
@github-actions github-actions bot added the mod:workspace Related to workspace label May 17, 2023
@himself65 himself65 temporarily deployed to development May 17, 2023 05:26 — with GitHub Actions Inactive
@vercel vercel bot temporarily deployed to Preview – affine-storybook May 17, 2023 05:27 Inactive
@himself65 himself65 temporarily deployed to development May 17, 2023 05:28 — with GitHub Actions Inactive
@himself65 himself65 temporarily deployed to development May 17, 2023 05:28 — with GitHub Actions Inactive
@himself65 himself65 temporarily deployed to development May 17, 2023 05:28 — with GitHub Actions Inactive
@himself65 himself65 temporarily deployed to development May 17, 2023 05:28 — with GitHub Actions Inactive
@codecov
Copy link

codecov bot commented May 17, 2023

Codecov Report

Patch coverage: 80.00% and project coverage change: +0.01 🎉

Comparison is base (017b9c8) 72.43% compared to head (d8a40ae) 72.45%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2405      +/-   ##
==========================================
+ Coverage   72.43%   72.45%   +0.01%     
==========================================
  Files         332      311      -21     
  Lines        7299     6886     -413     
  Branches     1161     1122      -39     
==========================================
- Hits         5287     4989     -298     
+ Misses       1806     1699     -107     
+ Partials      206      198       -8     
Flag Coverage Δ
e2etest 66.45% <80.00%> (-0.22%) ⬇️
e2etest-macos-latest-x64 ∅ <ø> (∅)
e2etest-ubuntu-latest-x64 47.78% <60.00%> (+0.07%) ⬆️
e2etest-windows-latest-x64 ∅ <ø> (∅)
server-test 73.12% <ø> (ø)
storybook-test 57.23% <ø> (ø)
unittest 37.40% <100.00%> (-3.10%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
apps/web/src/layouts/workspace-layout.tsx 89.11% <66.66%> (-1.17%) ⬇️
packages/workspace/src/atom.ts 87.09% <100.00%> (-0.79%) ⬇️

... and 24 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@himself65 himself65 temporarily deployed to development May 17, 2023 05:28 — with GitHub Actions Inactive
@himself65 himself65 temporarily deployed to development May 17, 2023 05:28 — with GitHub Actions Inactive
@himself65 himself65 temporarily deployed to development May 17, 2023 05:28 — with GitHub Actions Inactive
@himself65 himself65 temporarily deployed to development May 17, 2023 05:28 — with GitHub Actions Inactive
@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented May 17, 2023

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: d8a40ae
Status: ✅  Deploy successful!
Preview URL: https://8623a6bf.affine.pages.dev
Branch Preview URL: https://himself65-0516-reload.affine.pages.dev

View logs

@himself65 himself65 temporarily deployed to development May 17, 2023 05:29 — with GitHub Actions Inactive
@himself65 himself65 temporarily deployed to development May 17, 2023 05:29 — with GitHub Actions Inactive
@himself65 himself65 temporarily deployed to development May 17, 2023 05:29 — with GitHub Actions Inactive
@himself65 himself65 temporarily deployed to development May 17, 2023 05:30 — with GitHub Actions Inactive
@himself65 himself65 temporarily deployed to development May 17, 2023 05:30 — with GitHub Actions Inactive
@himself65 himself65 temporarily deployed to development May 17, 2023 05:30 — with GitHub Actions Inactive
@himself65 himself65 temporarily deployed to development May 17, 2023 05:30 — with GitHub Actions Inactive
@himself65 himself65 temporarily deployed to development May 17, 2023 05:30 — with GitHub Actions Inactive
@himself65 himself65 temporarily deployed to development May 17, 2023 05:30 — with GitHub Actions Inactive
@himself65 himself65 temporarily deployed to development May 17, 2023 05:30 — with GitHub Actions Inactive
@perfsee
Copy link

perfsee bot commented May 17, 2023

affine-toeverything

Bundle main

diff ------------------- Bundle Size Diff -------------------------

@@                       EntryPoint: main                        @@
##                     master …5/0516-reload                 +/- ##
===================================================================
< Bundle              3.11 MB        3.25 MB     +142 kB(+4.57%)   
< Initial JS          1.86 MB        2.06 MB    +203 kB(+10.93%)   
< Initial CSS         16.8 kB        30.9 kB   +14.1 kB(+84.29%)   
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
< Assets                   41             47                  +6   
< Chunks                   39             40                  +1   
< Packages                132            139                  +7   
= Duplicates                3              3                       
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Warnings ~~~~~~~~~~~~~~~~~~~~~~~~~~~#
! Separate mixed content assets files                              
! Avoid cache wasting                                              

@@                    EntryPoint: pages/_app                     @@
##                     master …5/0516-reload                 +/- ##
===================================================================
< Bundle                 3 MB        3.13 MB     +133 kB(+4.43%)   
< Initial JS          1.75 MB        1.94 MB    +194 kB(+11.10%)   
< Initial CSS         16.8 kB        30.9 kB   +14.1 kB(+84.29%)   
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
< Assets                   39             45                  +6   
< Chunks                   37             38                  +1   
< Packages                132            139                  +7   
= Duplicates                3              3                       
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Warnings ~~~~~~~~~~~~~~~~~~~~~~~~~~~#
! Separate mixed content assets files                              
! Avoid cache wasting                                              

@@                   EntryPoint: pages/_error                    @@
##                     master …5/0516-reload                 +/- ##
===================================================================
= Bundle              16.6 kB        16.6 kB                       
= Initial JS          16.6 kB        16.6 kB                       
= Initial CSS             0 B            0 B                       
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
= Assets                    2              2                       
= Chunks                    2              2                       
= Packages                  5              5                       
= Duplicates                0              0                       

...and more

@himself65 himself65 temporarily deployed to development May 17, 2023 05:32 — with GitHub Actions Inactive
@@ -28,11 +28,7 @@ export const rootWorkspacesMetadataAtom = atomWithStorage<
);

// two more atoms to store the current workspace and page
export const rootCurrentWorkspaceIdAtom = atomWithStorage<string | null>(
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

storage is unnecessary

@himself65 himself65 temporarily deployed to development May 17, 2023 05:34 — with GitHub Actions Inactive
@himself65 himself65 temporarily deployed to development May 17, 2023 05:34 — with GitHub Actions Inactive
@himself65 himself65 temporarily deployed to development May 17, 2023 05:34 — with GitHub Actions Inactive
@himself65 himself65 temporarily deployed to development May 17, 2023 05:34 — with GitHub Actions Inactive
@himself65 himself65 temporarily deployed to development May 17, 2023 05:34 — with GitHub Actions Inactive
@himself65 himself65 temporarily deployed to development May 17, 2023 05:36 — with GitHub Actions Inactive
@himself65 himself65 temporarily deployed to development May 17, 2023 05:38 — with GitHub Actions Inactive
@himself65 himself65 temporarily deployed to development May 17, 2023 05:38 — with GitHub Actions Inactive
@himself65 himself65 temporarily deployed to development May 17, 2023 05:38 — with GitHub Actions Inactive
@himself65 himself65 temporarily deployed to development May 17, 2023 05:38 — with GitHub Actions Inactive
@himself65 himself65 temporarily deployed to development May 17, 2023 05:38 — with GitHub Actions Inactive
@himself65 himself65 temporarily deployed to development May 17, 2023 05:38 — with GitHub Actions Inactive
@himself65 himself65 temporarily deployed to development May 17, 2023 05:38 — with GitHub Actions Inactive
@himself65 himself65 temporarily deployed to development May 17, 2023 05:38 — with GitHub Actions Inactive
@vercel vercel bot temporarily deployed to Preview – affine-preview May 17, 2023 05:46 Inactive
@vercel vercel bot temporarily deployed to Preview – affine-storybook May 17, 2023 05:51 Inactive
@himself65 himself65 enabled auto-merge (squash) May 17, 2023 05:55
@himself65 himself65 merged commit 2629d39 into master May 17, 2023
@himself65 himself65 deleted the himself65/0516-reload branch May 17, 2023 05:58
Brooooooklyn pushed a commit that referenced this pull request May 17, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
app:web mod:workspace Related to workspace
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Client app infinite reloading issue
2 participants