Open techanvil opened 3 months ago
IB ✔️ but I think the estimate is a bit low because we may need additional time to broken tests. I'll bump it to 7
.
This has been moved to the Backlog, the AC will need to be revised as discussed on Slack - it looks like most of the return yield
cases are indeed needed with the code as it stands, although we should update the redundant cases, but there's also a question about whether this is the correct pattern to follow, returning a non-action type from an action generator.
Feature Description
We have a number of cases where we're currently returning the result of a
yield
in an action generator. This is unnecessary- we should only be returning at this point, there's no need for the additionalyield
.For example:
https://github.com/google/site-kit-wp/blob/516183b8770031a75dce3d18c9e64fb1110b5be9/assets/js/googlesitekit/datastore/location/navigation.js#L63-L66
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
return yield
should be replaced withreturn
.Implementation Brief
return yield
toreturn
:Test Coverage
QA Brief
Changelog entry