![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
react-update-popup
Advanced tools
Ask users to refresh when there is a new version of the app available.
Ask users to refresh when there is a new version of the app available.
yarn add react-update-popup
# or: npm install --save react-update-popup
import React, { Component } from 'react'
import { UpdateNotification } from 'react-update-popup'
import 'react-update-popup/dist/index.css'
const Example = () => (
<UpdateNotification
checkHasUpdate={async () => {
// Optionally do something custom to check if an update is available.
// Called every 120 seconds.
// If you omit this, the default behaviour is to check if `index.html`
// has changed, which is the case with most bundlers.
return true // tell it an update is available
}}
/>
)
By default, the popup looks like this:
Update it to fit within your application by:
.update-notification-popup
to restyle the popupAll props are optional, and can be used to change the appearance of the popup.
title
- popup title, wrapped in <h3>
description
- popup description text, wrapped in <p>
buttonText
- button textrefreshInterval
- how often to check, defaults to 120_000
(2 minutes)checkHasUpdate
- replace default update check behaviour (returns boolean hasUpdate
)onReload
- replace default reload behaviourThis library is developed by Includable, a creative app development agency.
FAQs
Ask users to refresh when there is a new version of the app available.
The npm package react-update-popup receives a total of 175 weekly downloads. As such, react-update-popup popularity was classified as not popular.
We found that react-update-popup demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.