You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-06-27 23:28:38 +02:00
All: Add support for application plugins (#3257)
This commit is contained in:
13
ReactNativeClient/lib/services/commands/propsHaveChanged.ts
Normal file
13
ReactNativeClient/lib/services/commands/propsHaveChanged.ts
Normal file
@ -0,0 +1,13 @@
|
||||
export default function propsHaveChanged(previous:any, next:any):boolean {
|
||||
if (!previous && next) return true;
|
||||
|
||||
if (Object.keys(previous).length !== Object.keys(next).length) return true;
|
||||
|
||||
for (const n in previous) {
|
||||
if (previous[n] !== next[n]) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
Reference in New Issue
Block a user