Chapter 20 Challenge

There appears to be a difference between the source code on the starter and final challenges on chapter 20, which causes the last test to fail even if you have the right solution. In the mock jokes service the book tells you to use a CurrentValueSubject however the working final solution actually uses a PassthroughSubject. It took quite a bit of time for me to find this so could do with updating.

Can anyone explain why the CurrentValueSubject wouldn’t work here? Having trouble getting my head around the difference.

1 Like