function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Dave Durant 1Dave Durant 1 

'Connect Components with Events' module bugs?

I think parts of this one got moved around without updating the content that refers to them. 

In particular, it looks the code for and discussion around "handleCreateExpense" got moved to the end of the module but parts in the middle rely on it already having happend. There is a bit that says

[quote]If you went ahead and implemented all of the code we just looked at, you can test it out. Reload your app, and toggle a Reimbursed? checkbox a few times. If you missed a step, you’ll get an error, and you should recheck your work. If you did everything right…hey, wait, the expense changes color to show its Reimbursed? status, just as expected![/quote]

...but it doesn't work because the code that's needed to make it happen are down at the bottom of the module. 

There is also...
[quote]
We’ll start with the handleUpdateExpense action handler. Here’s the code, and be sure to put it riiiiiight under the handleCreateExpense action handler.[/quote]
...but, again, handleCreateExpense is later in the module. 
SandhyaSandhya (Salesforce Developers) 
Hi Dave Durant,

Appreciate your post.I would suggest you send feedback on this by clicking on submit feedback button on the same page of the module so that trailhead team would get noticed and do the appropriate.

Thanks and Regards
Sandhya