Closed jessepinho closed 2 weeks ago
Latest commit: 22a869de9edf1efd5a1be91c9433f335a720b406
The changes in this PR will be included in the next version bump.
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](https://github.com/penumbra-zone/web/new/jessepinho/better-optional-getters-dx-web-1153?filename=.changeset/tricky-buttons-search.md&value=---%0A%22%40penumbra-zone%2Fgetters%22%3A%20patch%0A---%0A%0ATweak%20getters%20to%20allow%20.optional()%20to%20be%20called%20at%20any%20point%20in%20a%20getter%20chain%0A)
Well, this turned out to be easier than expected!
Previously, we couldn't call
.optional()
at just any point in a getter chain; instead, we had to call it on the first getter in the chain. e.g.,With this PR's change,
.optional()
can now be called at any point in the chain, and it will work as expected!Closes #1153