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

Update alt-text generation hook to depend on the currentState #316

Merged
merged 5 commits into from
Mar 26, 2024

Conversation

JakeWags
Copy link
Member

Does this PR close any open issues?

Closes #305

Give a longer description of what this PR addresses and why it's needed

Previously, the alt-text hook needed to be adjusted to include all possible changes which could trigger re-generation. By using the current state as the hook dependency, any state update will cause regeneration.

If the alt-text is ever stored in the state, this may need to be adjusted to accommodate that.

Provide pictures/videos of the behavior before and after these changes (optional)

Have you added or updated relevant tests?

  • Yes
  • No changes are needed

Have you added or updated relevant documentation?

  • Yes
  • No changes are needed

Are there any additional TODOs before this PR is ready to go?

TODOs:

  • ...

@JakeWags JakeWags requested a review from JackWilb March 14, 2024 22:00
Copy link

netlify bot commented Mar 14, 2024

Deploy Preview for upset2 ready!

Name Link
🔨 Latest commit 3641bd9
🔍 Latest deploy log https://app.netlify.com/sites/upset2/deploys/660344b118e74a0008ec45f7
😎 Deploy Preview https://deploy-preview-316--upset2.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@JakeWags JakeWags merged commit cb5e006 into main Mar 26, 2024
7 checks passed
@JakeWags JakeWags deleted the alt-text-generation-hook branch March 26, 2024 22:01
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.

Bug: Alt text should update with visible set changes
2 participants