In SvelteKit navigation goto allows to pass state in the second argument such as:
import { goto } from '$app/navigation';
// ...
goto('/login', { state: { foo: 'bar' } });
The documents do not make it clear how state can be consumed/retrieved after the resulting navigation has occurred. state does not seem to be present on $page nor seems to be available on $navigating.
How do you consume state passed to second argument of goto()? Is it currently missing and you have to create your own writable store to manage this state?
This is an adapter-static SvelteKit application.