You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
@ElonVolo Out of the box we support taking snapshots of the current store. Here's a screenshot of where this is inside of Reactotron:
Even though we have a way for you to copy out the current state of the store as JSON. I don't see a way to replace the store with JSON of your own inside of Reactotron.
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?
The text was updated successfully, but these errors were encountered: