near / near-discovery

The homebase for Near Builders
https://dev.near.org
The Unlicense
49 stars 73 forks source link

Implement proper client side routing for all BOS <a> tags #739

Closed calebjacob closed 1 year ago

calebjacob commented 1 year ago

There are a lot of <a> tags used throughout BOS that cause really inefficient page reloads or redirects due to them not being native Next/Link components (which use client side routing). We should first investigate implementing customElements.Link in our VM initialization: https://github.com/NearSocial/VM/releases/tag/2.1.0

We'll then need to do a find and replace for all <a> tags in our components repo to use this Link component instead.

calebjacob commented 1 year ago

This could potentially be related: https://github.com/near/near-discovery/issues/693

calebjacob commented 1 year ago

Needed to implement a VM change to support this ticket: https://github.com/NearSocial/VM/pull/149

This will be a blocker until merged and published with a new VM version @charleslavon. I can still make some progress in the mean time.