T
TanStack3y ago
eastern-cyan

Error replicating Kitchen Sink Example

The error comes in the component definition:
component: function Users({ useLoader, useSearch }) {
const navigate = useNavigate()
const { usersView } = useSearch()
component: function Users({ useLoader, useSearch }) {
const navigate = useNavigate()
const { usersView } = useSearch()
The error states that useSearch is not a function. I am also getting a Typescript error (I believe) before executing that states: Property useSearch does not exist on type {} Thanks in advance!
1 Reply
eastern-cyan
eastern-cyanOP3y ago
To resolve this, I have tried to add a type to the component that declares both useLoader and useSearch as any. No luck however. I also triple checked I am replicating the example correctly.

Did you find this page helpful?