SSL Support: Refactor certificate trust selector - #1325
Conversation
f889895 to
0169e08
Compare
4faf9d6 to
5926522
Compare
0169e08 to
977bc7d
Compare
9332c01 to
3182bd5
Compare
fredrikekelund
left a comment
There was a problem hiding this comment.
This is shaping up nicely 👍 I left a couple of quick suggestions.
3182bd5 to
bbc9b60
Compare
fredrikekelund
left a comment
There was a problem hiding this comment.
A couple of final tweaks and this should be good to go 👍
We need to add the following to src/stores/index.ts to make the refetchOnFocus option work:
import { setupListeners } from '@reduxjs/toolkit/query';
setupListeners( store.dispatch );| error instanceof Error ? error.message : 'Failed to check certificate trust'; | ||
| return { | ||
| error: { data: false, error: errorMessage } as FetchBaseQueryError, | ||
| }; |
There was a problem hiding this comment.
@fredrikekelund, Returning error as you suggested was throwing an error in the console. RTK expects errors in current format.
fredrikekelund
left a comment
There was a problem hiding this comment.
LGTM with a small comment about the structure of the error object returned by checkCertificateTrust 👍
Suspect IssuesThis pull request was deployed and Sentry observed the following issues:
Did you find this useful? React with a 👍 or 👎 |
|
The Sentry issue appears to be unrelated to this PR. |
Related issues
Proposed Changes
Testing Instructions
Pre-merge Checklist