NA
Size: a a a
NA
MZ
MZ
node-fetch,
то на клиенте то не получится использовать?/
/
MZ
MZ
/
MZ
MZ
/
PM
MZ
PM
EM
<script context="module">
import { getClient } from '../../lib/apollo'
import { GET_USER_QUERY } from '../../features/users/graphql'
export async function preload(page, session) {
const { id: userId } = page.params
const client = getClient(session)
const cache = await client.query({ query: GET_USER_QUERY, variables: { userId } })
return { cache }
}
</script>
export let cache
const { user } = cache.data
EM
EM
onMount(() => {
dialogQuery = query(client, {
query: GET_DIALOG_QUERY,
variables: {
dialogId: $page.params.id,
},
})
})
MZ
onMount(() => {
dialogQuery = query(client, {
query: GET_DIALOG_QUERY,
variables: {
dialogId: $page.params.id,
},
})
})
MZ
EM