Open ssbarbee opened 6 months ago
@SlicedSilver do you mind reviewing this PR?
I think it would be better if we updated the example to import the datafeed class directly instead of loading it via a <script>
tag which pollutes the global window scope.
I haven't tested this, but looking at the existing syntax I would expect something like this to work:
import { UDFCompatibleDatafeed } from "@/public/static/datafeeds/udf/src/udf-compatible-datafeed";
I think it would be better if we updated the example to import the datafeed class directly instead of loading it via a
<script>
tag which pollutes the global window scope.I haven't tested this, but looking at the existing syntax I would expect something like this to work:
import { UDFCompatibleDatafeed } from "@/public/static/datafeeds/udf/src/udf-compatible-datafeed";
Do you mind explaining to me about the Githubissues.
Add example checklist
Bug fix checklist