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

Make the asset collection keep track of all of the destinations (#3467) #3469

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Destroyerrrocket
Copy link

This fixes the issue I mentioned in #3467, where the use of two asset! macro usages was not being treated correctly by the handler.

BEFORE you merge: Please notice that the code at: packages/cli/src/serve/handle.rs is ""wrong"" (and it was wrong before as well). It does a simple file copy without checking if it needs to be processed in any way, which is likely to lead to issues when dealing with images. I have not encountered this problem though and I don't know what purpose it serves. If you consider this to be an issue, I'd encourage you to make an issue about it.

…here might be more than one destination for the same asset (DioxusLabs#3467)
@ealmloff
Copy link
Member

ealmloff commented Dec 30, 2024

HashMap<PathBuf, HashMap<PathBuf, BundledAsset>>

It might make sense to just store HashMap<PathBuf, HashSet<BundledAsset>> instead of a nested hashmap since the BundledAsset struct already contains the bundled path and it looks like the hashmap value is never used.

I opened an issue here about hot reloaded assets not getting processed: #3471

@ealmloff ealmloff added bug Something isn't working cli Related to the dioxus-cli program manganis Related to the manganis crate labels Dec 30, 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 cli Related to the dioxus-cli program manganis Related to the manganis crate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants