oolong
oolong copied to clipboard
Flipper Plugin
Related links:
- https://fbflipper.com/
- https://fbflipper.com/docs/extending/index.html
Please follow up with suggestions and ideas if you have them, @oolong-kt/developers.
Some ideas I've had:
- Ability to display the function calls for
init,update,viewalong with their return values. Ideally, this would be grouped since there's a UDF here, showing what update caused what view caused what render - Ability to call a debug function of some kind from within
render,- ability to write some debug statement of some kind to describe the state of the UI
- ability to report a bitmap/gif output inside the render function to show up in flipper as the output state of
renderfunction
- Ability to click "go to" on any given model state and have that reinjected into the state of the runtime so that the render function can eventually be called with appropriate props and show a former state
- Ability to record/save/export a series of states and replay them later (e.g. make an update of some kind to the render function) -- presumably would require some means of serializing/deserializing data and persisting that (e.g. json or similar)
These are all great ideas! I've got a couple days off so I may hack on this.
I already have the foundation working if you want to work from that
https://github.com/dallasgutauckis/oolong-flipper-plugin
I will also add that I think ideally each function reference can diff the prior so that it's easier to see the changes. I want to display the data for each (e.g. model, props) as a tree more like the sidebar in the end.
I have work today/tomorrow and doing a flipper plugin is in our mid-term plans but not on my immediate so I was just hacking on this last night. Would probably end up hacking on it more each night as well.
Aghast as you may be, I didn't get a chance to do any more work on this yet. 🤣
Sounds like you’re enjoy time off, as I am and as you should! Happy New Year!