Remove dom-helpers, add local lib/canUseDom #1066
Merged
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.
This eliminates a dependency on an older version of
dom-helpers
(3.2.1
) which conflicts with that required byreact-transition-group
(dom-helpers
5.0.1
). This addresses an issue using evergreen with shadow-cljs which disallows multiple versions of the same package #858 (I realise it's closed currently, there's a little more detail in my comment here).I ran tests with
ava
successfully but did trip over some issues withxo
but I believe they're not introduced by my changes.There are no ui changes with this and the portal appears to work perfectly well with the updated changes.
I wasn't sure if I should update
examples/ssr-next
or not, I had a bit more difficulty running that with something like an incompatible node version. I can dig further into this if it's helpful and update the yarn.lock there too!Thanks!