Dealing with Strictness

Compiling the file, we get a few errors.

  • The venue-display file that is kicking off the call to React is not handling a potential undefined value.

  • The SortController is doing a parseInt with a potentially null value.

  • The debounce method in SearchController is unhappy and we may just need to restructure that.

  • The CalendarController has a few cases where we use target.dataset.

  • The thunk dispatches in App don’t like that they may potentially have nulls.

Using other strict options would give us more errors, in particular, I think the “no explicit any” might be a big problem, but I think this should be enough for us to deal with to get the idea.

Our venue_display file has basically the same issue four times over: we have ...

Get Modern Front-End Development for Rails now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.