-
Notifications
You must be signed in to change notification settings - Fork 332
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
✨ (app-updates): add settings to mock app update #7525
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
4 Skipped Deployments
|
import Switch from "~/renderer/components/Switch"; | ||
|
||
const MockAppUpdate = () => { | ||
const [enabled, setEnabled] = useState(getEnv("MOCK_APP_UPDATE")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you can use useEnv
and then any setEnv
will automatically will have the state reflecting this for you. which can simplify the need to have to manage a setEnabled
at all
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks will change
8f0cca3
to
b608c03
Compare
cbbc9be
to
65fd2f0
Compare
31b2861
to
4799d5d
Compare
✅ Checklist
npx changeset
was attached.📝 Description
Add a new developer setting in both LLD and LLM to fake app upate in MyLedger / Manager.
It will reinstall the current installed app
Will be useful for testing (in anticipation of the app data backup / restore integration)
To test it:
❓ Context
🧐 Checklist for the PR Reviewers