Skip to content

Fix useEffect syntax error in conditional dragging docs#237

Open
drtootsie wants to merge 1 commit intoatlassian:mainfrom
drtootsie:fix-useffect-docs-typo
Open

Fix useEffect syntax error in conditional dragging docs#237
drtootsie wants to merge 1 commit intoatlassian:mainfrom
drtootsie:fix-useffect-docs-typo

Conversation

@drtootsie
Copy link
Copy Markdown

@drtootsie drtootsie commented Feb 15, 2026

Addresses #224

Fixed incorrect useEffect syntax in the conditional dragging documentation example.

Change

- useEffect({
+ useEffect(() => {

Why

useEffect expects a callback function as its first argument, not an object. This was causing confusion for developers copying the example code.

Testing

  • Verified the syntax is now correct
  • Example now follows React best practices

Rovo Dev couldn't review this pull request
Upgrade to Rovo Dev Standard to continue using code review.

@atlassian-cla-bot
Copy link
Copy Markdown

Thank you for your submission! Like many open source projects, we ask that you sign our CLA (Contributor License Agreement) before we can accept your contribution.
If your email is listed below, please ensure that you sign the CLA with the same email address.

The following users still need to sign our CLA:
ppancoast@ntst.com

Already signed the CLA? To re-check, try refreshing the page.

Addresses atlassian#224

Fixed incorrect useEffect syntax in the conditional dragging documentation.

Changed:
  useEffect({
To:
  useEffect(() => {

useEffect expects a callback function as its first argument, not an object.
@drtootsie drtootsie force-pushed the fix-useffect-docs-typo branch from 42b9988 to d1833dc Compare March 11, 2026 02:49
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.

1 participant