Closed pavelisnear closed 1 month ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
bos-web-engine | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Mar 21, 2024 10:14pm |
bos-web-engine-docs | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Mar 21, 2024 10:14pm |
bos-web-engine-sandbox | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Mar 21, 2024 10:14pm |
I have been testing this and it seems to be working well when versions are recent enough to be serviced by a non-archival RPC node. I am working on getting us answers on how to proceed with fetching older component versions
enableBlockHeightVersioning
is set to true
enableBlockHeightVersioning
is set to false
(default) - the block height is ignored and the latest version fetchedimport BlockHeightWithFlagTest from 'near://pavel-pagoda.near/BlockHeightWithFlagTest@115160709';
import BlockHeightWithFlagTestLatest from 'near://pavel-pagoda.near/BlockHeightWithFlagTest';
export default function () {
return (
<div>
<h1>Sandbox with a block height:</h1>
<BlockHeightWithFlagTest />
<hr />
<h1>Sandbox latest:</h1>
<BlockHeightWithFlagTestLatest />
</div>
);
}
This PR introduces a way to set specific block height for a component. If no block height specified - the latest version is being fetched.
Example
A component using two instances of the same component, but the first one is with a specific block height.
Should produce two instances of the same component, but with the respected versions:
Fixes https://github.com/near/bos-web-engine/issues/95