Skip to content

Fixed Particles Background racing issue by changing "onMounted"#151

Merged
DavidHDev merged 1 commit into
DavidHDev:mainfrom
tfsantos05:main
Apr 22, 2026
Merged

Fixed Particles Background racing issue by changing "onMounted"#151
DavidHDev merged 1 commit into
DavidHDev:mainfrom
tfsantos05:main

Conversation

@tfsantos05
Copy link
Copy Markdown
Contributor

Problem

The Particles Background is blank on page load.

Why?

onMounted was calling initParticles() before Vue flushed its DOM updates, causing a race condition where the container ref wasn't ready yet.

Fix

Added await nextTick() to ensure the DOM is fully available before initialization.

Updated onMounted lifecycle hook to wait for DOM updates before initializing particles.
@DavidHDev DavidHDev merged commit f86eaff into DavidHDev:main Apr 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants