Skip to main content

navigate

Function navigate 

Source
pub fn navigate(url: &str)
Expand description

Programmatic client-side navigation, exported into the shared core bundle so page WASM can import it (the islands-runtime-bindings raw_module block declares navigate as a core import under its nav feature).

A bare pub use nav::navigate re-exports the Rust fn but emits NO JS export — only #[wasm_bindgen] items reach islands_core.js. Without this wrapper the binding’s import is unsatisfied and any page calling islands::navigate fails to link (SyntaxError: does not provide an export named 'navigate').