react-loaders | Lightweight wrapper around Loaders.css | Awesome List library
kandi X-RAY | react-loaders Summary
kandi X-RAY | react-loaders Summary
Lightweight wrapper around Loaders.css.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of react-loaders
react-loaders Key Features
react-loaders Examples and Code Snippets
Community Discussions
Trending Discussions on react-loaders
QUESTION
Question: Is it possible for us to check for the new build deployed on firebase hosting on changing route(or on focusing the tab) and reloading the page so user can view new features?
Currently user have to refresh the site to see new feature deployed in the build.
The following are the dependencies installed currently in my project:
...ANSWER
Answered 2020-Jan-09 at 07:54I was able to figure out a solution for my problem. I ended up adding a version Collection in my Cloud Firestore Database which gets updated from my CI/CD pipeline through a script which parse the current version of the package.json file and store it in the Cloud Firestore. And in my main App component of React i have added a Listener to version collection which lets compares version and reload page accordingly.
Added REACT_APP_VERSION=$(node -pe \"require('./package.json').version\")
before script (start/build) to set version from package.json
In App.jsx added below listener in componentDidMount
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install react-loaders
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page