Skip to content

Question: Save Store/Load Store #1435

@ElonVolo

Description

@ElonVolo

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions