We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Spotify for Windows (64 bit) 1.2.41.434.g39a25e2c Spicetify v2.36.14 Theme: Comfy / Comfy Extensions: npvAmbience.js, toggleDJ.js, gamepad.js, spotifyBackup.js, playbarClock.js, quickQueue.js, scannables.js, sleepTimer.js, tracksToEdges.js, adblock.js, immersiveView.js, volumePercentage.js Custom apps: lyrics-plus, new-releases, marketplace xpui_2024-06-28_1719586782170_39a25e2 cef_125.0.19+g3d8f1c9+chromium-125.0.6422.112 Runtime: Chrome Build System: CMake
Is it no longer a function and now a symbol? if so how can i make my old code work with it - or is this not intended
const Dialog = Spicetify.React.memo(props => { const [state, setState] = Spicetify.React.useState(true); const self = document.querySelector(".ReactModalPortal:last-of-type"); Spicetify.React.useEffect(() => { if (state) { props.onOpen?.(); } }, [state]); return Spicetify.ReactComponent.ConfirmDialog({ ...props, isOpen: state, onClose: () => { setState(false); props.onClose(); self.remove(); }, onConfirm: () => { setState(false); props.onConfirm(); self.remove(); } }); });
The text was updated successfully, but these errors were encountered:
ConfirmDialog is a JSX component. Blame Spotify for making it different
Sorry, something went wrong.
ConfirmDialog is a JSX component. Blame Spotify's for making it different
does this mean i can just do Spicetify.ReactComponent.ConfirmDialog.render({}) in its place?
Spicetify.ReactComponent.ConfirmDialog.render({})
ah just gotta wrap it in a new createElement, thanks for the help :)
Use React to create the element with this component
No branches or pull requests
π Have you checked Spicetify.app page for your issue?
π Is there already an issue for your problem?
βΉ Environment / Computer Info
π Description
Is it no longer a function and now a symbol? if so how can i make my old code work with it - or is this not intended
πΈ Screenshots
The text was updated successfully, but these errors were encountered: