urql-graphql / urql

The highly customizable and versatile GraphQL client with which you add on features like normalized caching as you grow.
https://urql.dev/goto/docs
MIT License
8.63k stars 451 forks source link

feat(graphcache): add logger interface #3444

Closed JoviDeCroock closed 10 months ago

JoviDeCroock commented 10 months ago

Resolves #3404

Summary

This adds an option to the graphCache constructor named Logger we will use the logger to convey information that is encountered during development. In doing so a user can choose to remove the warnings by stubbing the logger with () => {} or adding other custom logic to filter things out.

Set of changes

changeset-bot[bot] commented 10 months ago

🦋 Changeset detected

Latest commit: db6a6be1ab02865a198a60ff9362ddd53da4a508

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package | Name | Type | | ------------------------- | ----- | | @urql/exchange-graphcache | Minor |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

johnpmitsch commented 10 months ago

Thank you for this! 🙏🏻