apollo icon indicating copy to clipboard operation
apollo copied to clipboard

fix: handle null serialization

Open wuiyang opened this issue 6 months ago โ€ข 1 comments

๐Ÿ”— Linked issue

Resolves #636

โ“ Type of change

  • [ ] ๐Ÿ“– Documentation (updates to the documentation or readme)
  • [x] ๐Ÿž Bug fix (a non-breaking change that fixes an issue)
  • [ ] ๐Ÿ‘Œ Enhancement (improving an existing functionality)
  • [ ] โœจ New feature (a non-breaking change that adds functionality)
  • [ ] ๐Ÿงน Chore (updates to the build process or auxiliary tools and libraries)
  • [ ] โš ๏ธ Breaking change (fix or feature that would cause existing functionality to change)

๐Ÿ“š Description

This PR adds condition check during serialization, to avoid serialize null value as object, as typeof null === 'object'. It fix serialization issue for @nuxtjs/apollo config provided in nuxt.config.ts, where it cannot handle serialization for null value, which is accepted value for client.authType.

wuiyang avatar May 23 '25 19:05 wuiyang

Deploy Preview for apollo-module canceled.

Name Link
Latest commit 9898989be4a368599e027420e7069b63d16d4e17
Latest deploy log https://app.netlify.com/projects/apollo-module/deploys/6830cb09490ea50008374bd6

netlify[bot] avatar May 23 '25 19:05 netlify[bot]