Ian Dunn

Ian Dunn

WordPress Developer

Menu

Skip to content
  • Home
  • About
  • Archives
  • Contact

Monthly Archives: November 2019

Minimal CacheStorage API Example

It's not easy to find examples of using the CacheStorage API outside of service workers, or with the `await` operator, so I put one together.

Continue reading...

Posted on November 29, 2019 by Ian Dunn. Posted in JavaScript, WordPress | Tagged apiFetch, await, CacheStorage, Chrome, fetch, Firefox, Quick Navigation Interface, Safari, Service Workers | Leave a comment

Composition vs Context to fix Prop Drilling in React Apps

People will often argue that either Composition or Context should be used to remove prop drilling, but I think it's better to use them both in a more nuanced way.

Continue reading...

Posted on November 25, 2019 by Ian Dunn. Posted in JavaScript | Tagged Composition, Context, destructuring, encapsulation, Hooks, prop drilling, React | Leave a comment

Sending Custom Data between WordPress Customizer Preview and Controls Panes

Arbitrary data can be sent back and forth between the Customizer's Control and Preview panes by reusing the Messenger class.

Continue reading...

Posted on November 21, 2019 by Ian Dunn. Posted in JavaScript, WordPress | Tagged Customizer, postMessage | 2 Comments

Subscribe via Email

Feeds & Profiles

  • RSS
  • WordPress.org
  • GitHub
  • HackerOne
  • LinkedIn