infinitered / infinitered/reactotron
Question: Save Store/Load Store
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 15.6k
- Forks
- 972
- PR merge metrics
- No merged PRs in 30d
Description
Here's my scenario:
I am working on an iPhone app in create native, using the ignite framework and mobx-state-tree. The best way for me to test the design is by doing some actual value work on my device in the app, and that's work that I don't want to lose to some freak accident (bundle identifer getting accidentally renamed, whatever).
Here's my question: does Reactotron provide some out-of-the-box way to for me to click a button, open up a save file dialog, save the entire mobx-state-tree store from the phone to a file of my choosing, and then have a way to load that saved mst-store file back in by clicking another button that opens up an "Open File" dialog?
I'm sure there's some roundabout ways involving saving snapshots to clipboards and copy pasting the data into some hardcoded/ifdef'ed files, but I'm wondering if there's some non-obvious or non-documented way of doing what I just described.
And if this simple feature doesn't exist, would the project accept a PR that adds it?
Contributor guide
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
The issue names no files, tests, or entry points. Start by checking Reactotron's existing store or snapshot handling and file I/O capabilities for React Native and mobx-state-tree; done would be a usable save-and-load round trip for the entire store, or clear documentation that the feature is unsupported.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react-native, typescript
- Domain
- desktop, devtools, mobile-dev
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100