infinitered / infinitered/reactotron

Question: Save Store/Load Store

Open
#1,435 1 comment 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.