MantineColorSchemeManager async get / set? #6858
songkeys
started this conversation in
Feature requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently, it only supports synchronous get/set operations, similar to localStorage usage.
mantine/packages/@mantine/core/src/core/MantineProvider/color-scheme-managers/types.ts
Line 3 in 00a94ce
However, in some cases, the value might be retrieved from the cloud. In my situation, I'm using Mantine in a Chrome extension that stores persistent values through
[cloud.storage](https://developer.chrome.com/docs/extensions/reference/api/storage)
methods, which only support asynchronous operations.Beta Was this translation helpful? Give feedback.
All reactions