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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] dont load locally when in dev mode #5511

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

Conversation

pxpm
Copy link
Contributor

@pxpm pxpm commented Apr 25, 2024

WHY

BEFORE - What was wrong? What was happening before this PR?

When basset is in Dev mode, calling Basset::basset($asset) marks it as loaded even if not internalized.

We have two options here:

  • as I did, don't attempt to load local file (that doesn't exist) while in dev mode.
  • remove LOADED from the array of valid asset status.

This PR works as expected and is the easiest (from the side effects perspective), but removing LOADED from the status array is the cleanest, so I opened this PR in the hopes that we can remove the LOADED, but I am not sure about all the implications, nor why LOADED was added there.
Maybe for the use case when you have multiple backpack_avatar_url() calls ?

Clarify my doubts here @promatik 馃檹

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

None yet

2 participants