Frontend First cover image

Frontend First

Module side effects and import order

Aug 18, 2021
01:07:24

Sam and Ryan talk about how module side effects can expose order-dependent code, and why its worth ensuring your modules work regardless of import order. They also talk about different UI patterns for forms in modals, and some tips for working with Mirage in Cypress.

Topics include:

  • 0:00 – Intro
  • 4:04 – Keeping imports order-independent when modules have side effects
  • 25:02 – Using Mirage with Hasura
  • 32:00 – Cypress helpers for mocking auth and data
  • 46:37 – UI patterns for modal actions
  • 56:26 – Organizing shared query code

Links:

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode