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

fix: enable loading images from the same webSource #120

Merged
merged 6 commits into from
Jun 7, 2024

Conversation

moonayyur
Copy link
Collaborator

closes #117

Copy link

cloudflare-workers-and-pages bot commented May 23, 2024

Deploying pixelium with  Cloudflare Pages  Cloudflare Pages

Latest commit: 6f1b705
Status: ✅  Deploy successful!
Preview URL: https://f9ba7f38.pixelium.pages.dev
Branch Preview URL: https://117-cannot-load-image-twice.pixelium.pages.dev

View logs

Copy link
Contributor

@stropitek stropitek left a comment

Choose a reason for hiding this comment

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

As discusesd, the webSource prop of Pixelium is a hack to have access to pixelium's reducer.

My advice is to separate Pixelium into 2 components:

  • PixeliumProvider which contains the various providers needed by the pixelium UI.
  • PixeliumApp with the pixelium UI

This way the sidebar in between can directly load files into pixelium's state.

@moonayyur moonayyur marked this pull request as draft June 1, 2024 19:02
@moonayyur moonayyur marked this pull request as ready for review June 4, 2024 15:41
@moonayyur moonayyur merged commit 5418e3b into main Jun 7, 2024
3 checks passed
@moonayyur moonayyur deleted the 117-cannot-load-image-twice branch June 7, 2024 08:20
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.

Cannot load image twice
2 participants