kinode-dao / kinode

Kinode OS runtime
https://kinode.org
Apache License 2.0
32 stars 12 forks source link

reloadable widgets #404

Closed 0x70b1a5 closed 3 months ago

0x70b1a5 commented 3 months ago

Problem

On the mobile app, especially while we're still in alpha/beta, a user might get a widget into an unrecoverable state (navigating via a link to a page inside the iframe, for example).

Solution

In our iframes, listen for messages from the parent window. On reload message, reload the iframe.

Testing

Docs Update

WIP. I intend to add a Widgets page to the docs with this PR, but I first need to verify that the reload message works as intended.

Notes

10/10, no notes

0x70b1a5 commented 3 months ago

Found a way.