question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

dequal is not a function

See original GitHub issue

Just some super basic usage, getting an error saying that dequal isn’t a function since the update to 2.0

import dequal from 'dequal'

function useDeepCompareMemoize(value) {
  const ref = React.useRef()

  if (!dequal(value, ref.current)) {
    ref.current = value
  }

  return ref.current
}

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
stolinskicommented, Aug 13, 2020

NP, I know how it is. Thanks for the quick replys.

0reactions
lukeedcommented, Aug 13, 2020

Ok 😄 Sorry for the mixup. That late-night-finish-line bit me

Read more comments on GitHub >

github_iconTop Results From Across the Web

TypeError: assert.equal is not a function - Stack Overflow
you are using the wrong assert . you do not need this const { assert } = require('console');. You probably automatically imported by...
Read more >
deepEqual is not a function in KendoReact | Telerik Forums
Hello,. The Issue reside in the file. In this file, the deepEqual is imported this way : import * as deepEqual from 'deep-equal' ......
Read more >
dequal - npm
dequal CI. A tiny (304B to 489B) utility to check for deep equality. This module supports comparison of all types, including Function ......
Read more >
Node.js assert.equal() Method - W3Schools
The assert.equal() method tests if two values are equal, using the == operator. If the two values are not equal, an assertion failure...
Read more >
Uncaught TypeError | Is Not A Function | Solution - YouTube
Have you encountered an error like:- Uncaught TypeError- Some selector is not a function - jQuery is not a function - owlCarousel is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found