Skip to content
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

fix(composable): added useBoosterHydrate composable #1075

Merged
merged 5 commits into from
Aug 12, 2024

Conversation

ThornWalli
Copy link
Contributor

@ThornWalli ThornWalli commented Aug 5, 2024

Please check if the PR fulfills these requirements

  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
Adds a composable that returns theboosterHydrate method.

What is the current behavior? (You can also link to an open issue here)
Currently, the boosterHydrate method must be imported via import hydrate from '#booster/hydrate';.

What is the new behavior (if this is a feature change)?
The boosterHydrate function can now be imported globally via the composable useBoosterHydrate .

// import { useBoosterHydrate } from '#imports' // Optional if auto import disabled

const hydrate = useBoosterHydrate();

const component = hydrate(() => import('~/components/MyComponent.vue'));

Does this PR introduce a breaking change? (What changes might users need to make in their application due to this PR?)
No.

Copy link

@ThornWalli ThornWalli merged commit ffcb8de into main Aug 12, 2024
5 checks passed
@ThornWalli ThornWalli deleted the feature/use-booster-hydrate branch August 12, 2024 12:21
Copy link

🎉 This issue has been resolved in version 3.1.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants