Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

perf(nuxt): tree-shake asyncData client logic from server #7056

Merged
merged 2 commits into from
Aug 30, 2022

Conversation

pi0
Copy link
Member

@pi0 pi0 commented Aug 30, 2022

πŸ”— Linked issue

Extracted from #5738 by @OhB00

❓ Type of change

  • πŸ“– Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • πŸ‘Œ Enhancement (improving an existing functionality like performance)
  • ✨ New feature (a non-breaking change that adds functionality)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

πŸ“š Description

Move the client-only logic to process.client scope so that we are sure bundler can tree-shake it for server also increase code readability since is only used in if condition block.

Co-authored-by: Ohb00 43827372+OhB00@users.noreply.github.com

πŸ“ Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

@netlify
Copy link

netlify bot commented Aug 30, 2022

βœ… Deploy Preview for nuxt3-docs canceled.

Name Link
πŸ”¨ Latest commit e122760
πŸ” Latest deploy log https://app.netlify.com/sites/nuxt3-docs/deploys/630deadc0e69c700092a6e9b

@pi0 pi0 merged commit afc9d9b into main Aug 30, 2022
@pi0 pi0 deleted the perf/async-data-client branch August 30, 2022 10:48
This was referenced Aug 30, 2022
@danielroe danielroe added the 3.x label Jan 19, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants