Skip to content

docs: add missing import to example #1637

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

davidstackio
Copy link
Contributor

No description provided.

Copy link
Member

@posva posva left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Can you remove the other unused imports and apply the changes to the other sections, it seems to also have that issue.

@@ -79,7 +79,7 @@ VueFire also exposes a smaller composable that only retrieves the url of a file.
<script setup lang="ts">
import { useFileDialog } from '@vueuse/core'
import { ref as storageRef } from 'firebase/storage'
import { useFirebaseStorage, useStorageFile } from 'vuefire'
import { useFirebaseStorage, useStorageFile, useStorageFileUrl } from 'vuefire'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
import { useFirebaseStorage, useStorageFile, useStorageFileUrl } from 'vuefire'
import { useFirebaseStorage, useStorageFileUrl } from 'vuefire'

@@ -79,7 +79,7 @@ VueFire also exposes a smaller composable that only retrieves the url of a file.
<script setup lang="ts">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add a line above to highlight the added lines:

vue{4,?}

@davidstackio davidstackio requested a review from posva August 5, 2025 22:46
@@ -75,11 +75,10 @@ Once the picture is uploaded, you can use the `url` reactive variable. For examp

VueFire also exposes a smaller composable that only retrieves the url of a file. This is useful if you don't need to upload a file but only display it:

```vue
```vue{4,?}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
```vue{4,?}
```vue{4,11}

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

By ? I meant the actual line after editing, sorry it wasn't clear 😆

<script setup lang="ts">
import { useFileDialog } from '@vueuse/core'
import { ref as storageRef } from 'firebase/storage'
import { useFirebaseStorage, useStorageFile } from 'vuefire'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I meant the import here should also be adapted

@davidstackio
Copy link
Contributor Author

Ah, thanks for clarifying. I took some time to clarify the copy on the page too. Hope that's okay!

@davidstackio davidstackio requested a review from posva August 6, 2025 03:51
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