Skip to content

code_block: Fix null-check ! errors during hot reloads #789

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

Merged
merged 1 commit into from
Jul 5, 2024

Conversation

chrisbobbe
Copy link
Collaborator

On hot-reload, lerp is triggered even when the theme has not changed. Discussion:
https://chat.zulip.org/#narrow/stream/243-mobile-team/topic/Exceptions.20during.20hot.20reloads/near/1846095

I considered just going ahead with placing the web app's current light-theme styles for code blocks (#754), but pretty soon I realized there would still be some nulls in there after doing so, and those would need to be treated like we're treating the nulls here.

@chrisbobbe chrisbobbe requested a review from gnprice July 5, 2024 19:30
@chrisbobbe chrisbobbe added the a-content Parsing and rendering Zulip HTML content, notably message contents label Jul 5, 2024
On hot-reload, `lerp` is triggered even when the theme has not
changed. Discussion:
  https://chat.zulip.org/#narrow/stream/243-mobile-team/topic/Exceptions.20during.20hot.20reloads/near/1846095

I considered just going ahead with placing the web app's current
light-theme styles for code blocks (zulip#754), but pretty soon I
realized there would still be some nulls in there after doing so,
and those would need to be treated like we're treating the nulls
here.
@gnprice
Copy link
Member

gnprice commented Jul 5, 2024

Thanks! Looks good; merging.

@gnprice gnprice force-pushed the pr-fix-code-block-nulls-error branch from f5f0da8 to 74de34c Compare July 5, 2024 20:48
@gnprice gnprice merged commit 74de34c into zulip:main Jul 5, 2024
@chrisbobbe chrisbobbe deleted the pr-fix-code-block-nulls-error branch July 5, 2024 20:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a-content Parsing and rendering Zulip HTML content, notably message contents
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants