Skip to content
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

File input lastModifiedDate #38

Open
AuthorProxy opened this issue May 21, 2018 · 3 comments
Open

File input lastModifiedDate #38

AuthorProxy opened this issue May 21, 2018 · 3 comments

Comments

@AuthorProxy
Copy link

Maybe add to ignore this case? BBB/dropzone-redux-form-example#5

@leoasis
Copy link
Owner

leoasis commented Jun 18, 2018

I'm sorry, but that looks like a particular case, when this is intended as a general use case. Maybe you can use ignore or isImmutable to make sure this middleware ignores that particular field in your state.

@AuthorProxy
Copy link
Author

AuthorProxy commented Jun 20, 2018

@leoasis It's not the specific framework case, it is how DOM file API works, as I understand when you store file data at store , input asynchronously update already stored file field lastModifiedDate at the background

@leoasis
Copy link
Owner

leoasis commented Jun 21, 2018

This is still not general enough for a plugin that aims to detect immutability in a generic state managment library like redux. Also, the DOM itself is mutable so you shouldn't be using such objects as part of the state, unless you know what you're doing and know how that works with respect to the optimizations that redux does because of assuming the state is mutable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants