master-co / css

The CSS Language and Framework
https://css.master.co
MIT License
1.82k stars 41 forks source link

🐞 CSSRuntimeProvider: Configuration changes do not refresh runtime css #325

Closed 1aron closed 9 months ago

1aron commented 9 months ago

Description

<script setup lang="ts">
import { defineAsyncComponent } from 'vue'
const CSSRuntimeProvider = defineAsyncComponent(async () => (await import('@master/css.vue')).CSSRuntimeProvider)
const config = import('./master.css')
</script>

<template>
    <CSSRuntimeProvider :config="config">
        …
    </CSSRuntimeProvider>
</template>

Note: React, Vue, and Svelte have this same issue.

Reproduction

No response

System Informations

No response

1aron commented 9 months ago

Released in https://github.com/master-co/css/releases/tag/v2.0.0-rc.14