Whenever I use VM.require, I need to do it with a null check:
const { Feed } = VM.require("efiz.near/widget/Module.Feed");
Feed = Feed || (() => <></>);
This is because VM.require is essentially a Social.get, and so data may be null on the first requests.
This is different than a Widget, which returns a Loading widget as data fetches.
I'm wondering if we could create a synchronous block that must complete before the rest continues; almost like getServerSideProps for Next.js. Or is there a better practice?
Whenever I use VM.require, I need to do it with a null check:
This is because VM.require is essentially a Social.get, and so data may be null on the first requests.
This is different than a Widget, which returns a Loading widget as data fetches.
I'm wondering if we could create a synchronous block that must complete before the rest continues; almost like getServerSideProps for Next.js. Or is there a better practice?