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

debugging html component #36

Merged
merged 5 commits into from
Sep 26, 2022
Merged

debugging html component #36

merged 5 commits into from
Sep 26, 2022

Conversation

JulienParis
Copy link
Member

@JulienParis JulienParis commented Sep 26, 2022

Solution to #37

The problem was due to HtmlComponent live cycle : the component was indeed correctly loaded but the html injection was only working in case of a prop change, not in case the prop was correct before mounting.

So the correction added here consisted in adding a beforeMount event to the HtmlComponent script, in addition to the watch event. I also use this occasion to make the prop a bit more straight-forward by changing the expected type and its name : a prop named rawHtml (expecting a String) instead of sectionData (expecting an object).

@netlify
Copy link

netlify bot commented Sep 26, 2022

Deploy Preview for multi-website ready!

Name Link
🔨 Latest commit e3cbec1
🔍 Latest deploy log https://app.netlify.com/sites/multi-website/deploys/6331ac4988ccc600099ce01e
😎 Deploy Preview https://deploy-preview-36--multi-website.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 settings.

@netlify
Copy link

netlify bot commented Sep 26, 2022

Deploy Preview for multi-site-preprod-core-texts ready!

Name Link
🔨 Latest commit e3cbec1
🔍 Latest deploy log https://app.netlify.com/sites/multi-site-preprod-core-texts/deploys/6331ac49a93d9b00083881c4
😎 Deploy Preview https://deploy-preview-36--multi-site-preprod-core-texts.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 settings.

@netlify
Copy link

netlify bot commented Sep 26, 2022

Deploy Preview for multi-site-app-test ready!

Name Link
🔨 Latest commit e3cbec1
🔍 Latest deploy log https://app.netlify.com/sites/multi-site-app-test/deploys/6331ac49f271870008c67dda
😎 Deploy Preview https://deploy-preview-36--multi-site-app-test.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 settings.

@netlify
Copy link

netlify bot commented Sep 26, 2022

Deploy Preview for multi-site-preprod ready!

Name Link
🔨 Latest commit e3cbec1
🔍 Latest deploy log https://app.netlify.com/sites/multi-site-preprod/deploys/6331ac499714af0009601e6f
😎 Deploy Preview https://deploy-preview-36--multi-site-preprod.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 settings.

@netlify
Copy link

netlify bot commented Sep 26, 2022

Deploy Preview for datami-documentation ready!

Name Link
🔨 Latest commit e3cbec1
🔍 Latest deploy log https://app.netlify.com/sites/datami-documentation/deploys/6331ac49d468c1000884bd3b
😎 Deploy Preview https://deploy-preview-36--datami-documentation.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 settings.

@netlify
Copy link

netlify bot commented Sep 26, 2022

Deploy Preview for datami ready!

Name Link
🔨 Latest commit e3cbec1
🔍 Latest deploy log https://app.netlify.com/sites/datami/deploys/6331ac49e9dbfd000999d96e
😎 Deploy Preview https://deploy-preview-36--datami.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 settings.

@JulienParis JulienParis changed the title cleaning on html component debugging html component Sep 26, 2022
@JulienParis JulienParis self-assigned this Sep 26, 2022
@JulienParis JulienParis added the bug Something isn't working label Sep 26, 2022
@JulienParis JulienParis marked this pull request as ready for review September 26, 2022 13:56
@JulienParis JulienParis merged commit 2136362 into main Sep 26, 2022
@JulienParis JulienParis deleted the julien-debug-html-load branch September 26, 2022 19:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant