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

Commit 90d9f01

Browse files
committed
Merge branch 'fix/cleanup' into develop
2 parents 8403cbe + 809145d commit 90d9f01

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
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]

api/wordpress/connector.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export function createWpApolloClient() {
3131
*
3232
* @author WebDevStudios
3333
* @param {mixed} initialState Initial Apollo state.
34-
* @return {object} WP Apollo client instance.
34+
* @return {Object} WP Apollo client instance.
3535
*/
3636
export function initializeWpApollo(initialState = null) {
3737
// Only run one instance of the Apollo client.

0 commit comments

Comments
 (0)