Reinstate uses of useScopeValue (#5544)

GitOrigin-RevId: d1eac1b18b042fbd4203cd37c79abef10cec626c
This commit is contained in:
Alf Eaton 2021-10-21 16:29:27 +01:00 committed by Copybot
parent 49adb35811
commit be809a0de8

View file

@ -75,7 +75,7 @@ export function CompileProvider({ children }) {
const [compiling, setCompiling] = useState(false)
// the log entries parsed from the compile output log
const [logEntries, setLogEntries] = useState()
const [logEntries, setLogEntries] = useScopeValue('pdf.logEntries')
// annotations for display in the editor, built from the log entries
const [logEntryAnnotations, setLogEntryAnnotations] = useScopeValue(
@ -86,13 +86,13 @@ export function CompileProvider({ children }) {
const [pdfViewer] = useScopeValue('settings.pdfViewer')
// the URL for downloading the PDF
const [pdfDownloadUrl, setPdfDownloadUrl] = useState()
const [pdfDownloadUrl, setPdfDownloadUrl] = useScopeValue('pdf.downloadUrl')
// the URL for loading the PDF in the preview pane
const [pdfUrl, setPdfUrl] = useState()
const [pdfUrl, setPdfUrl] = useScopeValue('pdf.url')
// the project is considered to be "uncompiled" if a doc has changed since the last compile started
const [uncompiled, setUncompiled] = useState()
const [uncompiled, setUncompiled] = useScopeValue('pdf.uncompiled')
// the id of the CLSI server which ran the compile
const [clsiServerId, setClsiServerId] = useState()