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

fix(vite): update render if it is invalidated #7347

Merged
merged 1 commit into from Sep 8, 2022
Merged

fix(vite): update render if it is invalidated #7347

merged 1 commit into from Sep 8, 2022

Conversation

danielroe
Copy link
Member

πŸ”— Linked issue

resolves nuxt/nuxt#14844

❓ 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

I may be misunderstanding the implementation here, but it seems that we were not updating the render function when it was invalidated. This PR ensures that if the entry is invalidated, we fetch it fresh from the runner.

πŸ“ Checklist

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

@danielroe danielroe added bug Something isn't working dx πŸ”¨ p3-minor-bug Priority 3: a bug in an edge case that only affects very specific usage labels Sep 8, 2022
@danielroe danielroe requested review from pi0 and antfu September 8, 2022 10:00
@danielroe danielroe self-assigned this Sep 8, 2022
@netlify
Copy link

netlify bot commented Sep 8, 2022

βœ… Deploy Preview for nuxt3-docs canceled.

Name Link
πŸ”¨ Latest commit 5ab6973
πŸ” Latest deploy log https://app.netlify.com/sites/nuxt3-docs/deploys/6319bd2704d134000899eedd

@pi0
Copy link
Member

pi0 commented Sep 8, 2022

LGTM. Waiting for @antfu to confirm.

@pi0
Copy link
Member

pi0 commented Sep 8, 2022

Let's try on edge. /cc @antfu please check and tell if id doesn't feel a right fix to you.

@pi0 pi0 merged commit e22bbcc into main Sep 8, 2022
@pi0 pi0 deleted the fix/watchers branch September 8, 2022 14:17
@pi0 pi0 mentioned this pull request Sep 9, 2022
@pi0 pi0 mentioned this pull request Sep 15, 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
3.x bug Something isn't working dx πŸ”¨ p3-minor-bug Priority 3: a bug in an edge case that only affects very specific usage
Projects
None yet
Development

Successfully merging this pull request may close these issues.

vite-node server watcher not invalidating files
2 participants