This issue is automatically created based on existing pull request: magento/pwa-studio#3842: Make Apollo links customizable
Description
Allow Apollo links to be customized by a configureLinks prop to Adapter / useAdapter. Also, while we're at it, extract the links into their own modules.
This can either follow #3757 or we can combine them here.
New component/talon signature
function configureLinks(linksMap) {
// receive a map
// return either a map or array, with modifications
return Array.from(linksMap.values())
}
const tree = (
<Adapter
apiBase="https://example.com/graphql"
configureLinks={configureLinks}
store={store}
styles={styles}
/>
)
This issue is automatically created based on existing pull request: magento/pwa-studio#3842: Make Apollo links customizable
Description
Allow Apollo links to be customized by a
configureLinks
prop toAdapter
/useAdapter
. Also, while we're at it, extract the links into their own modules.This can either follow #3757 or we can combine them here.
New component/talon signature
New package structure
Related Issue
CIF-2826
Acceptance
Verification Stakeholders
Specification
Verification Steps
Test scenario(s) for direct fix/feature
Test scenario(s) for any existing impacted features/areas
Test scenario(s) for any Magento Backend Supported Configurations
Is Browser/Device testing needed?
Any ad-hoc/edge case scenarios that need to be considered?
Screenshots / Screen Captures (if appropriate)
Breaking Changes (if any)
Checklist