X-Git-Url: https://git.r.bdr.sh/rbdr/forum/blobdiff_plain/18ced3bfaff8ca40edb1a96e631ba1553a3a7a6d..26dfa00e2f4eddbdc71ae4d92ee5676f11413ada:/src/stores/forums.js?ds=inline diff --git a/src/stores/forums.js b/src/stores/forums.js index 5cce7ba..2c03a05 100644 --- a/src/stores/forums.js +++ b/src/stores/forums.js @@ -1,4 +1,5 @@ import { store } from './apollo'; -import { GET_FORUMS } from '$data/queries'; +import { GET_FORUM, GET_FORUMS } from '$/data/queries'; -export const forums = store({ key: 'forums', query: GET_FORUMS, initialValue: [] }); +export const getForum = (id) => store({ key: 'forum', query: GET_FORUM, variables: { id } }); +export const getForums = () => store({ key: 'forums', query: GET_FORUMS, initialValue: [] });