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

Infinite requests when the loader prop is passed #448

Open
kausko opened this issue Nov 12, 2021 · 0 comments
Open

Infinite requests when the loader prop is passed #448

kausko opened this issue Nov 12, 2021 · 0 comments

Comments

@kausko
Copy link

kausko commented Nov 12, 2021

Using the loader prop with the baseURL property, in conjunction with the onNewView and signalListeners props causes vega-loader to indefinitely send requests to the data URL in the Vega specification.

I'm trying to keep a track of all the signal induced changes to the Vega chart. For my use-case, I need the View from onNewView to create the signalListeners for the Vega chart.

Now adding the loader prop creates an infinite loop where the View generates signalListeners, which generate a new View, which generates new signalListeners and so on.

This doesn't happen if the loader prop isn't passed. The chart also loads properly if only the loader prop is passed. But using all of these props together seems to cause this issue.

CodeSandbox Link Line 80

Network tab
image

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

No branches or pull requests

1 participant