11 lines
541 B
TypeScript
11 lines
541 B
TypeScript
/**
|
|
* Empties the `@modal` slot on خانه. A slot keeps its last page through a soft navigation to a
|
|
* route it has none for, so without this the «پست جدید» dialog would stay open over خانه when it
|
|
* closes there (the composer's fallback with no history behind it) or when a link leads home while
|
|
* it is open. Only this route: a catch-all here would also match every path without a page, and a
|
|
* soft navigation there would keep the old page under the new URL.
|
|
*/
|
|
export default function HomeModal() {
|
|
return null;
|
|
}
|