master-co / css

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

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

Closed 1aron closed 7 months ago

1aron commented 7 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 7 months ago

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