Skip to Main Content
Modern Front-End Development for Rails, 2nd Edition
book

Modern Front-End Development for Rails, 2nd Edition

by Noel Rappin
September 2022
Intermediate to advanced content levelIntermediate to advanced
410 pages
10h 7m
English
Pragmatic Bookshelf
Content preview from Modern Front-End Development for Rails, 2nd Edition

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.

  • All the dispatch calls that are using React Thunk are reporting a type error about VenueAction and VenueThunk.

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 ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Modern Front-End Development for Rails

Modern Front-End Development for Rails

Noel Rappin

Publisher Resources

ISBN: 9781680509977Errata Page