remotestorage.js
remotestorage.js copied to clipboard
Empty files leads to infinite fetching during sync process
This has the same root cause as https://github.com/remotestorage/remotestorage.js/issues/187
I wonder whether we should introduce a node
type, with methods that do the rigorous checking for us. Currently the code of sync.js
is littered with typeof
-checks, unfortunately only partially.
Good idea.
Where would I define such a type?
It's a fairly complex topic, as you also have to implement it with the caching in mind.
It would only replace the {...}
construction I see in makeNode
. It's not even a real design change?
Oh, ok. Haven't looked into it specifically. Just explore on your own.