treat pathandinput as solid accessor

This commit is contained in:
OrJDev
2022-11-05 02:29:59 +02:00
parent df8aa2b9ec
commit efe56dc44d
6 changed files with 64 additions and 55 deletions
+9
View File
@@ -50,3 +50,12 @@ const App: Component<IAppProps> = ({}) => {
export default App;
```
### Example
```ts
import { trpc } from "./utils/trpc";
import { createSignal } from "solid-js";
const [name, setName] = createSignal("");
const res = trpc.queryName.useQuery(() => ({ name: name() })); // this will be called when name changes
```