Skip to content

Why is a function not passing args? #193

Answered by dai-shi
ghost asked this question in General
Discussion options

You must be logged in to vote
onClick={(id, currentVersion, position) => {
  updatePosition({
    id,
    currentVersion,
    positions: [position[0] - 1, position[1], position[2]]
  });
}}

should work? (if the signature of onClick is correct)

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@dai-shi
Comment options

@dai-shi
Comment options

@dai-shi
Comment options

@dai-shi
Comment options

Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant