StackedRouter: use isolated unique id
This commit is contained in:
parent
157fbade81
commit
ee67993796
1 changed files with 6 additions and 0 deletions
|
@ -21,6 +21,12 @@ import { makeEventListener } from "@solid-primitives/event-listener";
|
|||
import { useWindowSize } from "@solid-primitives/resize-observer";
|
||||
import { isPointNotInRect } from "./dom";
|
||||
|
||||
let uniqueCounter = 0;
|
||||
|
||||
function createUniqueId() {
|
||||
return `sr-${uniqueCounter++}`;
|
||||
}
|
||||
|
||||
export type StackedRouterProps = Omit<RouterProps, "url">;
|
||||
|
||||
export type StackFrame = {
|
||||
|
|
Loading…
Add table
Reference in a new issue