cheminfo / cheminfo/nmrium

onDataChange invoked too often

Open
#933 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
80
Forks
34
Avg merge
2d 9h
Merged PRs (30d)
36

Description

@lpatiny @hamed-musallam When we import the nmr-displayer and enter/leave the component with mouse then the onDataChange method is invoked each time. It is also invoked when we just resize its container.

For an application which just takes the spectra data or correlations, for example, this is not necessary and invokes callback methods within the other application.

Is there any way to invoke this callback method only if we really change the data inside?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.