near / bos-web-engine

Improved execution layer for NEAR decentralized frontend components
https://roc-docs.near.dev/
26 stars 6 forks source link

`bos-loader` Components get fetched from RPC #382

Closed andy-haynes closed 8 months ago

andy-haynes commented 8 months ago

Before #360 when rendering local Components in demos via bos-loader, the local version was used to populate the cache and it was never fetched from Social DB. Now it appears that the Component is set initially, but the fetch is made anyway. For Components that don't exist on chain (e.g. in /ignore), this triggers an error that persists on the page.

Console screenshot, note the second RPC fetch: image

mpeterdev commented 8 months ago

need to dedupe compiler for web

andy-haynes commented 8 months ago

This issue is fixed with #385 but the underlying problem is that the compiler is processing requests before it's finished initializing, which is likely why sandbox still tries to fetch newly-added Components. I'll file a separate issue for this.