near / react-on-chain

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

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

Closed andy-haynes closed 1 month ago

andy-haynes commented 1 month 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 1 month ago

need to dedupe compiler for web

andy-haynes commented 1 month 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.