Closed urmauur closed 1 week ago
File | Lines |
---|---|
core/src/browser/extension.ts | 105, 113-114, 125-126, 144-145, 147-149, 155, 199, 201, 208-212, 214-215 |
web/hooks/useModels.ts | 45, 59, 61, 65, 81-82, 85, 89, 100-101 |
web/hooks/usePath.ts | 9-11, 13, 15, 17-19, 22-23, 25-27, 30-32, 34-35, 37, 40-42, 45-46, 48, 50-54, 57-58, 60-64, 67 |
Describe Your Changes
electron/managers/window.ts:
show: false
when creating the main window configuration.'ready-to-show'
on the main window. This feature toggle controls whether to show the main window once it is ready to be displayed.web/containers/Providers/DataLoader.tsx:
@janhq/core
, includingevents
andModelEvent
.isUpdated
and an effect hook that listens for model updates using theuseModels
hook.isUpdated
is true and then calls theloadDataModel
function to reload the models.web/hooks/useModels.ts:
isUpdated
as it was being used inconsistently throughout the file.useModels
hook that includes bothloadDataModel
andisUpdated
.isUpdated
is true, ensuring that the models are reloaded only when necessary.These changes primarily involve improving the window management in Electron and enhancing the data loading process in a React component by incorporating real-time updates based on model changes. The introduction of feature toggles (
show: false
) and conditional event listeners helps in managing the visibility and behavior of application components more effectively.Fixes Issues
Self Checklist