AO
Size: a a a
AO
DS
AO
AO
AO
DS
AO
AO
DS
DS
AO
AO
DS
AO
DS
const defaultHistoryInstance = createMemoryHistory()
const defaultLocationInstance = defaultHistoryInstance.location
const updateHistory = createEvent<History>()
const updateLocation = createEvent<Location>()
export const history = restore(updateHistory, defaultHistoryInstance)
export const location = restore(updateLocation, defaultLocationInstance)
const connectHistory = (instance: History) => {
updateHistory(instance)
updateLocation(instance.location)
return instance.listen((location) => updateLocation(location))
}
только не бейте ногамиAO
AO
AO
AO
DS