-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support Use Case : store FileSystemDirectoryHandle or FileSystemHandle in Redux Store #368
Comments
I had a related proposal at #295. My use case is that I’d like to store the handle in the file itself for self modifying HTML files. |
|
whatwg/fs#46 proposes a new method that returns a unique string serialization of a This string can be used as a key to store a string: |
Hypothetical, if it where possible to create a handle from a string, would it then be accessible to postMessage it to a other origin if i gave them the string or would the handle still only be accessible to the domain who called fyi, i have wanted to be able to send a handle with postMessage to another origin for quite some time now... |
The latter. See https://github.com/whatwg/fs/blob/9063e176651af48aa8ad8f0a6537e710d477def2/UniqueID.md#expose-the-same-id-to-all-sites
This would likely be in the context of something like #245, at least at first. Not something we're planning to work on anytime soon, though |
I'm using using the File System Access API with an application build with React and Redux. I need to store
FileSystemDirectoryHandle
andFileSystemHandle
objects in the redux store, which requires to be serializable.I see from the specification that these classes are serializable, it appears to me that they are serialized only by the API for
IndexedDB
, orpostMessage
, as stated in this article.So I'm wondering if I can serialize the manually, and so use them with a Redux application.
The text was updated successfully, but these errors were encountered: