Skip to content

@unovis/svelte: Update component lifecycles to prevent DOM related errors - #216

Merged
rokotyan merged 2 commits into
mainfrom
fix/svelte-lifecycles
Jun 1, 2023
Merged

@unovis/svelte: Update component lifecycles to prevent DOM related errors#216
rokotyan merged 2 commits into
mainfrom
fix/svelte-lifecycles

Conversation

@reb-dev

@reb-dev reb-dev commented May 30, 2023

Copy link
Copy Markdown
Contributor

@reb-dev
reb-dev requested a review from rokotyan May 31, 2023 19:29
@rokotyan

Copy link
Copy Markdown
Contributor

@reb-dev I've been testing you PR with SvelteKit and found that there's one more error that was introduced with my recent ResizeObserver changes:

export const ResizeObserver = window.ResizeObserver || ResizeObserverPolyfill

To fix it we'll just need to replace window with globalThis. Can you please add this change to this PR?

@reb-dev

reb-dev commented Jun 1, 2023

Copy link
Copy Markdown
Contributor Author

@rokotyan

To fix it we'll just need to replace window with globalThis. Can you please add this change to this PR?

Done!

@rokotyan
rokotyan merged commit b8c7a19 into main Jun 1, 2023
@rokotyan rokotyan mentioned this pull request Jun 27, 2023
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

Successfully merging this pull request may close these issues.

2 participants