This solution causes the app to be stuck in an infinite loop as it keeps on refreshing because packageVersion < metaVersion would be true always.
packageVersion < metaVersion
No it won't be true always if you have set header's of meta.json file to have not cache using CloudFront policies.
Or manually settings headers for this to for no-store .
no-store
In this case it will always be a new version from next deployment.
Let me know if I was able to help ?
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
This solution causes the app to be stuck in an infinite loop as it keeps on refreshing because
packageVersion < metaVersion
would be true always.No it won't be true always if you have set header's of meta.json file to have not cache using CloudFront policies.
Or manually settings headers for this to for
no-store
.In this case it will always be a new version from next deployment.
Let me know if I was able to help ?