update: use picosanity instead of sanity client package #1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Live reload works without any code modification. Might need to restart mac if a previous remix is running - seems to be a ws issue in remix that will be fixed soon.
However after a few updates it will return the same error.
TypeError: Cannot read property 'objectMode' of undefined at DestroyableTransform.Writable.write (/XXX/remix-livereload-bug/node_modules/readable-stream/lib/_stream_writable.js:317:22) at IncomingMessage.ondata (internal/streams/readable.js:719:22) at IncomingMessage.emit (events.js:315:20) at IncomingMessage.EventEmitter.emit (domain.js:467:12) at IncomingMessage.Readable.read (internal/streams/readable.js:519:10) at flow (internal/streams/readable.js:992:34) at resume_ (internal/streams/readable.js:973:3) at processTicksAndRejections (internal/process/task_queues.js:80:21)
Instead of using @sanity/client, tried using picosanity package to return sanity dataset and live reload works without build error.