🎉 Optimistic loading is now a thing!
You can see this in action on Phenomic documentation by throttling the network
connection using your browser developer tools with a slow connection.
This release should not bring any major breaking change so you should be
available to update very easily (probably by just bumping version number and renaming webpack.config.babel.js
to webpack.config.js
).
- Added: layouts can now receive partial data accompanied with a loading flag
(isLoading
props)
Now, if you remove yourPageLoading
layouts, you will automatically receive partial data in the correct (future) layout (only head, body won't be defined untilisLoading
is != true).
Should not be a breaking change if you do still usePageLoading
.
If you still usePageLoading
, you can define a static property in some
layouts to tell Phenomic to send anisLoading
props to your specific
layout instead of usingPageLoading
for this specific transition.
You can refer to the minimal change you can do in the docs code if you want to replacePageLoading
usage by optimistic loading viaisLoading
props.
This probably allows you to handle page transitions more easily since similar
layouts won't be unmounted.
(#855 - @DavidWells & @MoOx) - Added: If site is already open in Chrome on macOS, we reuse the existing tab
instead of opening a new one
(#854 - @DavidWells) - Added: less restriction on babel-register hook
You can now usewebpack.config.js
instead of
webpack.config.babel.js
and so import es2015 files in webpack
configuration file.
(#450 - @MoOx) - Removed: webpack build notifications
If you want to add notifications back, please directly use
webpack-notifier.
We will add a better, more accurate option later
(#859 - @MoOx) - Added: support of text, textile, text2tags, asciidoc file extensions
for clean urls
(#852 - @MoOx)