-
-
Notifications
You must be signed in to change notification settings - Fork 610
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ErrorLink #440
Comments
Similar request #419 I too really like to have this feature to catch Network error and to handle appropriately outside components. I see an approach in this repo https://github.com/ygmpkk/flutter_graphql_backenderrorlink |
@jayjun thank you so much for your work on it. This was much needed feature for me. I didn't test it, but there has been lot of changes around splitting network error etc in the beta branch. In the stable branch I couldn't handle http error (status code 401 etc) through a custom link. It may all solved now with the changes in beta branch. But please confirm your changes make it possible to catch errors at network level. thanks again. bsr |
Now that #445 has been merged, we can close this issue. |
# [3.0.0-beta.1](v2.1.0...v3.0.0-beta.1) (2019-12-22) ### Bug Fixes * **cache:** add value == and hashCode to lazy cache map, fix traversal ([617dde7](617dde7)) * **cache:** AppLifecycleState.{suspending -> detached} ([8bc7b14](8bc7b14)) * **ci:** attempt to fix ci ([4fac2e4](4fac2e4)) * **client:** default toEncodable ([5f938e4](5f938e4)) * **client:** export operation and fetch results ([5dcbae5](5dcbae5)) * **client:** make fetchMore valid with default original document again ([faa3779](faa3779)) * **client:** organize exports alphabetically ([a322339](a322339)) * **client:** patch fetchMore to write to cache ([9cb7474](9cb7474)) * **client:** use noCache for fetchMore, avoiding normalization ([da20541](da20541)) * **docs:** remove moved onComplete ([31a0d2f](31a0d2f)) * **docs:** use ast for examples ([d68616e](d68616e)) * **example:** depend on updated angel server, add paging example ([609c4ec](609c4ec)) * **flutter:** prevent observable discarding in `MutationState.didChangeDependencies` ([baeca25](baeca25)) * **flutter:** return callback results in case of futures to await ([c7d6fd1](c7d6fd1)) * pass queryId directly instead of ObservableQuery object ([405ae24](405ae24)) * **graphql-flutter:** ignore ast errors in the core ([3b16f3f](3b16f3f)) * add eager result to stream, rebuild query widget on var change ([af89b19](af89b19)) * bump gql dependency ([b55a891](b55a891)) * don't set default policies on options so defaults are applied ([fd95e37](fd95e37)) * exception test cases ([001cb48](001cb48)) * fix issues so example runs on latest stable ([87d8feb](87d8feb)) * ignore `*.iml` and `.idea` ([361fdff](361fdff)) * ignore linting errors from the core ([0612d44](0612d44)) * ignore uri doesn't exist lint error ([e14349d](e14349d)) * individually suppress "deprecated_member_use_from_same_package" only ([3879f18](3879f18)) * individually suppress "deprecated_member_use_from_same_package" only ([9216976](9216976)) * remove analysis_options.yaml as its ineffective ([0a8d05d](0a8d05d)) * remove equatable package ([0c32b14](0c32b14)) * remove equitable package and update tests ([dbe4db5](dbe4db5)) * subscriptions reconnect ([c310db2](c310db2)) * subscriptions reconnect ([fd8f3d1](fd8f3d1)) * suppress fix: individually suppress "deprecated_member_use_from_same_package" only ([511630f](511630f)) * switch test to AST from document string ([894dc53](894dc53)) * temporary disable assertion which is failing ([3cf7333](3cf7333)) * update .gitignore with standard flutter paths ([892fe36](892fe36)) * update starwars example ([8aaa99b](8aaa99b)) * use AST for graphql client example ([edf7df6](edf7df6)) * **graphql-flutter:** replace document string with AST Document ([23e40af](23e40af)) * **tests:** clobbered tests from library-level exceptions ([f76e165](f76e165)) * **tests:** fix failing tests seemingly to to ast-switch ([664fdd1](664fdd1)) * use case else instead of detached or suspended ([9fb5aab](9fb5aab)) ### Features * **client:** add error link ([de9714a](de9714a)), closes [#419](#419) [#440](#440) * **client:** cache.reset() added ([8c4f2e2](8c4f2e2)) * **client:** introduce Policies class for options and add defaults to client ([fa24aab](fa24aab)) * **client:** library-level exception handling ([20e57bd](20e57bd)) * **client:** library-level exceptions ([8976cfc](8976cfc)) * **client:** support defining operations from document AST ([fa2db11](fa2db11)) * **client:** support joining multiple links at once ([9565244](9565244)) * attempt to call mutation callbacks from mutation method ([e323a4d](e323a4d)) * better message on UnhandledFailure ([eccab11](eccab11)) * document exception handling ([b38e2a3](b38e2a3)) * **flutter:** add mutation callback for onError ([1ff0b8f](1ff0b8f)) * **graphql-client:** re-export parseString as gql ([dcd5508](dcd5508)) * update examples to gql instead of parse string ([7b9ac57](7b9ac57)) * updating example ([1a1bc43](1a1bc43)) * use equatable package to make it easier to compare links ([a7ed072](a7ed072)) ### BREAKING CHANGES * **client:** replaces result.errors with result.exception
# [3.0.0](v2.1.0...v3.0.0) (2020-01-13) ### Bug Fixes * **cache:** add value == and hashCode to lazy cache map, fix traversal ([617dde7](617dde7)) * **cache:** AppLifecycleState.{suspending -> detached} ([8bc7b14](8bc7b14)) * **ci:** attempt to fix ci ([4fac2e4](4fac2e4)) * **client:** default toEncodable ([5f938e4](5f938e4)) * **client:** export operation and fetch results ([5dcbae5](5dcbae5)) * **client:** make fetchMore valid with default original document again ([faa3779](faa3779)) * **client:** organize exports alphabetically ([a322339](a322339)) * **client:** patch fetchMore to write to cache ([9cb7474](9cb7474)) * **client:** use http 0.12.0+4 to fix a wrong content-type header on multipart request on http 0.12.0+3 ([ea8822c](ea8822c)), closes [#525](#525) * **client:** use noCache for fetchMore, avoiding normalization ([da20541](da20541)) * **docs:** remove moved onComplete ([31a0d2f](31a0d2f)) * switch test to AST from document string ([894dc53](894dc53)) * **docs:** use ast for examples ([d68616e](d68616e)) * add eager result to stream, rebuild query widget on var change ([af89b19](af89b19)) * bump gql dependency ([b55a891](b55a891)) * don't set default policies on options so defaults are applied ([fd95e37](fd95e37)) * exception test cases ([001cb48](001cb48)) * fix issues so example runs on latest stable ([87d8feb](87d8feb)) * ignore `*.iml` and `.idea` ([361fdff](361fdff)) * ignore linting errors from the core ([0612d44](0612d44)) * ignore uri doesn't exist lint error ([e14349d](e14349d)) * individually suppress "deprecated_member_use_from_same_package" only ([3879f18](3879f18)) * individually suppress "deprecated_member_use_from_same_package" only ([9216976](9216976)) * pass queryId directly instead of ObservableQuery object ([405ae24](405ae24)) * remove analysis_options.yaml as its ineffective ([0a8d05d](0a8d05d)) * remove equatable package ([0c32b14](0c32b14)) * remove equitable package and update tests ([dbe4db5](dbe4db5)) * subscriptions reconnect ([fd8f3d1](fd8f3d1)) * subscriptions reconnect ([c310db2](c310db2)) * suppress fix: individually suppress "deprecated_member_use_from_same_package" only ([511630f](511630f)) * temporary disable assertion which is failing ([3cf7333](3cf7333)) * update .gitignore with standard flutter paths ([892fe36](892fe36)) * **graphql-flutter:** replace document string with AST Document ([23e40af](23e40af)) * update starwars example ([8aaa99b](8aaa99b)) * **example:** depend on updated angel server, add paging example ([609c4ec](609c4ec)) * **flutter:** prevent observable discarding in `MutationState.didChangeDependencies` ([baeca25](baeca25)) * **flutter:** return callback results in case of futures to await ([c7d6fd1](c7d6fd1)) * **graphql-flutter:** ignore ast errors in the core ([3b16f3f](3b16f3f)) * **packaging:** update rxdart and sdk min versions ([1980f22](1980f22)), closes [#497](#497) * **tests:** clobbered tests from library-level exceptions ([f76e165](f76e165)) * **tests:** fix failing tests seemingly to to ast-switch ([664fdd1](664fdd1)) * use AST for graphql client example ([edf7df6](edf7df6)) * use case else instead of detached or suspended ([9fb5aab](9fb5aab)) ### Features * **client:** add error link ([de9714a](de9714a)), closes [#419](#419) [#440](#440) * **client:** cache.reset() added ([8c4f2e2](8c4f2e2)) * **client:** introduce Policies class for options and add defaults to client ([fa24aab](fa24aab)) * **client:** library-level exception handling ([20e57bd](20e57bd)) * **client:** library-level exceptions ([8976cfc](8976cfc)) * **client:** support defining operations from document AST ([fa2db11](fa2db11)) * **client:** support joining multiple links at once ([9565244](9565244)) * attempt to call mutation callbacks from mutation method ([e323a4d](e323a4d)) * better message on UnhandledFailure ([eccab11](eccab11)) * document exception handling ([b38e2a3](b38e2a3)) * **flutter:** add mutation callback for onError ([1ff0b8f](1ff0b8f)) * **graphql-client:** re-export parseString as gql ([dcd5508](dcd5508)) * update examples to gql instead of parse string ([7b9ac57](7b9ac57)) * updating example ([1a1bc43](1a1bc43)) * use equatable package to make it easier to compare links ([a7ed072](a7ed072)) ### BREAKING CHANGES * **packaging:** projects dependent on old sdk/rxdart versions wouldn't build, there is a way to override rxdart dependency with dependency_override (we don't use Observable features in these places, so it should be compatible with older version) there is no way to override min sdk version outside of a project * **client:** replaces result.errors with result.exception
Something comparable to Apollo's ErrorLink
The text was updated successfully, but these errors were encountered: