Skip to content

launchupio/flicker-builder

Repository files navigation

bldr

Build Setup

# install dependencies
$ yarn install

# generate static project
$ yarn generate

# start project
$ yarn start

Testing Instructions

  1. Do the above, and then open up http://localhost:3000 (or whatever port you're on)
  2. in chrome, right click inspect, and look for the Performance tab (usually tucked away under the >> button)
  3. Change network from no throttle to Fast 3G or Slow 3G
  4. Press refresh button inside inspect mode (command+shift+e for mac)
  5. Observe the flicker. The orange box is a custom component registered in builder. We starts from loading up ./dist/index.html where it is available, and then it goes away and comes back. If hydration matched well, we shouldn't have the element itself disappear.
  6. Observe the difference between the final output that is in dist/index.html (you can find it in ./diff/distIndex.html) and the client-side final rendering (./diff/clientSideIndex.html)
  7. In your terminal, path into the /diff folder. Run node diff.mjs. Then look at the file the_diff.txt to see the dom diff as created by the diff-dom library. No diff would be an output of just [].

About

Simple Nuxt 2.15.8 + Builderio demo to show components disappearing

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published