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 paragraph panel unauthed #439

Merged
merged 3 commits into from
Dec 6, 2024
Merged

Conversation

CharlieMcVicker
Copy link
Collaborator

Right now, on dev, the paragraph panel causes a full crash if you are not authed.

  • don't return before all hooks are called
  • do not try to render all the words in the paragraph as react elements (this was the actual issue)
  • remove unneeded "as"

While finding this issue, I have uncovered that our react type checking is too loose, and will let you pass any object into the {} braces in a JSX block. This is an issue with React 17 and its type defs. We can override them (ick) or upgrade to react 18/19 (also ick, but only for the short term pain).

Copy link

netlify bot commented Dec 6, 2024

Deploy Preview for dailp ready!

Name Link
🔨 Latest commit b85c1a9
🔍 Latest deploy log https://app.netlify.com/sites/dailp/deploys/6752482e1bb06f000878c687
😎 Deploy Preview https://deploy-preview-439--dailp.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.

@GracefulLemming GracefulLemming merged commit a91c1df into main Dec 6, 2024
5 checks passed
@GracefulLemming GracefulLemming deleted the fix-paragraph-panel-unauthed branch December 6, 2024 21:53
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.

2 participants