How to disable ability to use devtools?
Open
Nobody has claimed this yet.
question
- Dominant language
- JavaScript
- Stars
- 502
- Forks
- 34
- PR merge metrics
- No merged PRs in 30d
Description
I can disable react-devtools with code like this:
for (const prop in window.__REACT_DEVTOOLS_GLOBAL_HOOK__) {
window.__REACT_DEVTOOLS_GLOBAL_HOOK__[prop] = isFunction(
window.__REACT_DEVTOOLS_GLOBAL_HOOK__[prop]
)
? () => ()
: null;
}
Do you know the ability to disable mobx-devtools extension for production?
I do not want to give the ability for clients to see my data.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No file, test, or entry point is named. Start by locating how the MobX devtools extension connects to production pages and how its injected code accesses application data. Define a production-disable mechanism, then verify that the extension cannot inspect data in a production build.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react
- Domain
- devtools
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100