Skip to content
This repository was archived by the owner on Feb 27, 2024. It is now read-only.

Commit 809145d

Browse files
committed
Add returns
1 parent c9b097a commit 809145d

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

api/apolloConfig.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,9 @@ export function initializeApollo(apolloClient, initialState = null) {
4343
* Pass down Apollo state to page props.
4444
*
4545
* @author WebDevStudios
46-
* @param {object} client Apollo Client props.
47-
* @param {object} pageProps Props from getStaticProps().
46+
* @param {Object} client Apollo Client props.
47+
* @param {Object} pageProps Props from getStaticProps().
48+
* @return {Object} Updated page props.
4849
*/
4950
export function addApolloState(client, pageProps) {
5051
if (pageProps?.props) {
@@ -58,7 +59,8 @@ export function addApolloState(client, pageProps) {
5859
* Only update when the cache value has changed.
5960
*
6061
* @author WebDevStudios
61-
* @param {object} pageProps Props from getStaticProps().
62+
* @param {Object} pageProps Props from getStaticProps().
63+
* @return {Object} WP Apollo client instance.
6264
*/
6365
export function useApollo(pageProps) {
6466
const state = pageProps[APOLLO_STATE_PROP_NAME]

0 commit comments

Comments
 (0)