vue-hot-reload-api icon indicating copy to clipboard operation
vue-hot-reload-api copied to clipboard

Add comment to one line of example

Open tristanleboss opened this issue 5 years ago • 0 comments
trafficstars

Hello,

I was reading the Usage section of the README.md file and one line lack a comment :

if (!module.hot.data) {

I have no ideea what this line does. I checked the WebPack HMR API doc and found one occurence of this property (https://webpack-v3.jsx.app/api/hot-module-replacement/):

This object will be available at module.hot.data after the update.

But it doesn't explain what's its purpose and what checking its existence implies.

Adding a comment to this line may help futur reader.

tristanleboss avatar Jul 19 '20 21:07 tristanleboss