8000 Comparison with 2.x API - correct imports · vuejs/rfcs@83e13ed · GitHub
[go: up one dir, main page]

Skip to content

Commit 83e13ed

Browse files
adamwardeckiyyx990803
authored andcommitted
Comparison with 2.x API - correct imports
1 parent 51d6752 commit 83e13ed

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

active-rfcs/0000-function-api.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -984,7 +984,8 @@ Functions API
984984
</template>
985985
986986
<script>
987-
import { fetchPost, value, watch } from './api'
987+
import { value, watch } from 'vue'
988+
import { fetchPost } from './api'
988989
989990
export default {
990991
setup(props) {
@@ -1081,7 +1082,8 @@ With the function-based API:
10811082
</template>
10821083
10831084
<script>
1084-
import { fetchPost, value, watch, onMounted, onUnmounted } from './api'
1085+
import { value, watch, onMounted, onUnmounted } from 'vue'
1086+
import { fetchPost } from './api'
10851087
10861088
function useFetch(props) {
10871089
const isLoading = value(true)

0 commit comments

Comments
 (0)
0