immutable js - fromJS: accessing a file download (array of Object file) seems impossible to convert as immutable
fromJSdoes an excellent job even with nested structures , for example:
javascript
const nested = [ { id: 1, val1: '1, other: { id: 1, prop1: '0' } }, true ];
BUT
So far, the object String(MyObject)= [object Object] fromJSconverts it as Map().
But when the object is a file String(MyFileObject)= [object File], fromJSleave it[object File]
Q1: How (I mean the best way) deal with downloading a file with immutable js?
Q2: Is there some FileMap (equivalent to Map, but a mirror for an object) for this case?
source
share