helfer / apollo-link-debounce

An Apollo Link that debounces requests
MIT License
119 stars 22 forks source link

Allow integration with projects that don't use React #25

Open JanNitschke opened 3 years ago

JanNitschke commented 3 years ago

This package indirectly imports React since it imports from the apollo client package:

import {...} from "@apollo/client"

This package is dependent on React as it incudes the client and its React bindings. Since this package does not use any of the React specific functions this can be changed to:

import {...} from "@apollo/client/core"

This removes the dependency for react and allows the integration with projects that don't use react. This change does not affect the functionality in React projects.