You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,6 +34,7 @@ A convention-based version update notifier. Use it to notify users already on th
34
34
*`showReload` - _true_ shows a reload button the user can click to refresh. _false_ hides the button. **default: true**
35
35
*`reloadButtonText` - Sets the text for the default reload button. **default: "Reload"**
36
36
*`onNewVersion(newVersion, oldVersion)` - a closure action that is called whenever a new version is detected. You can use this to track the version status elsewhere in your app (outside the component).
37
+
*`updateNeeded(oldVersion, newVersion)` - a function that is called to check if an update message should be shown. For example, a function could be passed that only shows a message on major version changes. **default: Always show message on any version change**
0 commit comments