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

Load stocks widget component from staging, add to RHR #6

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

egargan-ft
Copy link

This PR hackily reproduces the behaviour of the Extensible Frontends 'runtime' module, which pulls components from a registry and loads them onto the page.

The stocks widget component is pulled from the stocks widget's staging component server, which at the time of writing hosts a hacked version of the widget that knows how to use the new 'cmd' attribute on the RHR element.

You'll need to install a plugin to have the browser ignore the stocks widget server's CORS rules, I use the "Allow CORS" extension: just download it and activate it when you're in the demo app and it should all work fine!

image

This commit hackily reproduces the behaviour of the Extensible Frontends 'runtime'
module, which pulls components from a registry and loads them onto the page.

The stocks widget component is pulled from the stocks widget's staging component server,
which at the time of writing hosts a hacked version of the widget that knows how
to use the new 'cmd' attribute on the RHR element.

You'll need to install a plugin to have the browser ignore the stocks
widget server's CORS rules, I use the "Allow CORS" extension: just
download it and activate it when you're in the demo app and it should
all work fine!
Copy link

netlify bot commented Jul 18, 2024

Deploy Preview for willowy-florentine-38731a ready!

Name Link
🔨 Latest commit 46af00a
🔍 Latest deploy log https://app.netlify.com/sites/willowy-florentine-38731a/deploys/66994a2af3b5d800081053f2
😎 Deploy Preview https://deploy-preview-6--willowy-florentine-38731a.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.

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.

1 participant