Skip to content

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

Open
egargan-ft wants to merge 1 commit intooliverturner:mainfrom
egargan-ft:load-stocks-widget-ef-component
Open

Load stocks widget component from staging, add to RHR#6
egargan-ft wants to merge 1 commit intooliverturner:mainfrom
egargan-ft:load-stocks-widget-ef-component

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!
@netlify
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