Skip to content

setupWindowHooks parameter to include context for better window management#1

Open
charanjit-singh wants to merge 1 commit intoGridminder:mainfrom
charanjit-singh:main
Open

setupWindowHooks parameter to include context for better window management#1
charanjit-singh wants to merge 1 commit intoGridminder:mainfrom
charanjit-singh:main

Conversation

@charanjit-singh
Copy link
Copy Markdown

@charanjit-singh charanjit-singh commented Mar 7, 2025

fix(README.md): update setupWindowHooks parameter to include context for better window management

refactor(setupWindowRouter.ts): modify setupWindowHooks to accept context parameter for enhanced functionality

…ile from being tracked

fix(README.md): update setupWindowHooks parameter to include context for better window management
refactor(setupWindowRouter.ts): modify setupWindowHooks to accept context parameter for enhanced functionality
@charanjit-singh charanjit-singh changed the title chore(.gitignore): add pnpm-lock.yaml to .gitignore to prevent lock f… setupWindowHooks parameter to include context for better window management Mar 7, 2025
build
out No newline at end of file
out
pnpm-lock.yaml No newline at end of file
Copy link
Copy Markdown
Contributor

@Bram-Zijp Bram-Zijp Sep 26, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry I missed the notification of this pull request and haven't looked at it in a while. The pnpm-lock.yaml should not be gitignored. By committing this, the package versions remain stable unless you manually bump them. This also adds security as it contains the module package hashes. When hackers push to an pre-existing version, this hash will prevent it from getting automatically installed as the hash would be changed.

return { action: 'deny' };
});

console.log(context); // To get the window config and id
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't mind this change but I would be interested in knowing the use-case for the context here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants