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

useDirectory and useDirectoryFileUrls use same key #544

Open
geoguide opened this issue Dec 9, 2024 · 0 comments
Open

useDirectory and useDirectoryFileUrls use same key #544

geoguide opened this issue Dec 9, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@geoguide
Copy link

geoguide commented Dec 9, 2024

Describe the bug
I have a parent that I'm using useDirectoryFileUrls to show images in a folder in and then the child is using useDirectory to check for existance of the folder, but when I do so the url gets wiped on the parent and clears the image.

To Reproduce
Make a parent that uses useDirectoryFileUrls with a child that uses useDirectory with the same folder.

Expected behavior
The different methods should have different keys.

Additional context
If there's a better way to conditionally remove a directory (I'm trying to clear the directory to replace the files in it in the child) that would suffice.

@geoguide geoguide added the bug Something isn't working label Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant