-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Closed
Description
Shouldn't we use the <svelte:head> in the setContext and getContext example? I'm against introducing new concepts too early for no reason, but the current code is a bit of a mess now.
Propose using:
<svelte:head>
<link rel="stylesheet" href="https://unpkg.com/mapbox-gl/dist/mapbox-gl.css">
</svelte:head>Instead of the current:
svelte/site/content/examples/15-context/00-context-api/Map.svelte
Lines 17 to 21 in e73084b
| const link = document.createElement('link'); | |
| link.rel = 'stylesheet'; | |
| link.href = 'https://unpkg.com/mapbox-gl/dist/mapbox-gl.css'; | |
| link.onload = () => { |
| link.parentNode.removeChild(link); |