Skip to content
This repository has been archived by the owner on Feb 27, 2024. It is now read-only.

Commit

Permalink
Support for auto-importing inject and provide
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalbaljet committed Nov 22, 2023
1 parent 4e78528 commit 4121156
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,10 @@ Or, use the `@` symbol to escape the curly braces:
In the first above, we used the `ref` and `computed` functions from Vue's Composition API. Splade Core automatically imports these functions for you. Here's a list of all the functions that are automatically imported:

- `computed`
- `inject`
- `nextTick`
- `onMounted`
- `provide`
- `reactive`
- `readonly`
- `ref`
Expand Down
2 changes: 2 additions & 0 deletions src/ScriptParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,10 @@ class ScriptParser

protected array $vueFunctions = [
'computed',
'inject',
'nextTick',
'onMounted',
'provide',
'reactive',
'readonly',
'ref',
Expand Down

0 comments on commit 4121156

Please sign in to comment.