MCPcopy Create free account
hub / github.com/TanStack/query / locationId

Function locationId

examples/solid/rick-morty-solid-router/src/Character.tsx:23–28  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21 <Match when={query.data}>
22 {(data) => {
23 const locationId = () => {
24 const locationUrlParts = data()
25 .location.url.split('/')
26 .filter(Boolean)
27 return locationUrlParts[locationUrlParts.length - 1]
28 }
29
30 return (
31 <div>

Callers 1

CharacterFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected