Skip to main content

leak_str

Function leak_str 

Source
fn leak_str(s: String) -> &'static str
Expand description

Leak a String to &'static str so the leptos view can hold the reference without extra cloning. Storybook stories are short-lived processes (the headless exporter runs once per build) — total leak bytes are negligible.