Skip to content
New issue

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

fix: registered external resouces should keep singleton ref #262

Merged
merged 3 commits into from
Dec 8, 2023

Conversation

ghiscoding
Copy link
Owner

  • external resources can be provided through the grid options, but these options are sometime deep copied and that might have the side effect of losing the singleton ref of the instantiate services/resources, instead we can simply keep these singleton refs before any grid options merge can happen and that is in the constructor before the grid initializes and before the grid options are merged and sometime deep copied with global options

TODOs

  • requires new version of Slickgrid-Universal

- external resources can be provided through the grid options, but these options are sometime deep copied and that might have the side effect of losing the singleton ref of the instantiate services/resources, instead we can simply keep these singleton refs before any grid options merge can happen and that is in the constructor before the grid initializes and before the grid options are merged and sometime deep copied with global options
@ghiscoding ghiscoding marked this pull request as draft December 2, 2023 01:37
@ghiscoding ghiscoding marked this pull request as ready for review December 8, 2023 03:41
@ghiscoding ghiscoding merged commit 14703df into master Dec 8, 2023
2 checks passed
@ghiscoding ghiscoding deleted the bugfix/registered-resources-deep-copied branch December 8, 2023 03:50
ghiscoding added a commit that referenced this pull request Dec 16, 2023
- PR #262 can potentially cause a regression with external resource registered globally
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.

None yet

1 participant