question-mark

Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support for embedded data with useScript

See original GitHub issue

Issue Description

I am trying to migrate to hoofd library on my blog which currently uses react-helmet.

I almost migrated everything except Rich Text Data which needs to be embedded within the script tag.

Is it possible to add support for embedding data with useScript?

References that might be useful

  1. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script#embedding_data_in_html
  2. https://developers.google.com/search/docs/guides/intro-structured-data

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
JoviDeCroockcommented, May 18, 2021

Published as 1.3.0

1reaction
JoviDeCroockcommented, May 17, 2021

That looks good to me yes 😅 thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Qualtrics JavaScript Methods: Setting Embedded Data with ...
I've been frustrated trying to manipulate questions in Qualtrics and not being able to do so. Qualtrics is great and better than any...
Read more >
The Script element - HTML: HyperText Markup Language
The <script> HTML element is used to embed executable code or data; this is typically used to embed or refer to JavaScript code....
Read more >
Embedded data defined in Javascript doesn't show up in ...
Hello,. In my survey, I define embedded data in JavaScript. I use the following type of script: Qualtrics.SurveyEngine.
Read more >
Dynamically Embedding Service Desk Widget
Does anyone know why when I insert the widget embed directly into the html file, it works.. but if I do it dynamicaly...
Read more >
javascript - Adding script tag to React/JSX - Stack Overflow
A very important distinction that people asked for and I needed for my implementation with stripe.js. useScript.js. import { useState, useEffect } from...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found