Update react-dnd to the latest version 🚀 #1013
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There have been updates to the react-dnd monorepo:
devDependency
react-dnd was updated from7.3.0
to7.3.1
.These versions are not covered by your current version range.
If you don’t accept this pull request, your project will work just like it did before. However, you might be missing out on a bunch of new features, fixes and/or performance improvements from the dependency update.
This monorepo update includes releases of one or more dependencies which all belong to the react-dnd group definition.
Release Notes for Hooks API Update
Updates to the non-stable, hooks-based API.
Add useDragPreview hook.
useDrag
begin()
function is now optional, and returnsvoid
.end()
is the DragResulttype
property has been removeditem
property, which must contain a type fieldref
field optional, if this is not set, then one will be created.useDrop
type
property has been renamedaccept
drop
,hover
andcanDrop
functions now take the DragItem as the first argument.ref
field optional, if this is not set, then one will be created.Commits
The new version differs by 14 commits.
dcac7a5
v7.3.1
46b7893
Hooks API Refactorings (#1261)
78cef8f
docs: add link to examples-hooks package
2eaafb0
docs: improve examples root page
532d11f
v7.3.0
4d86bb4
Export the DragDropContextConsume from the top-level react-dnd API (#1260)
b146a1a
fix: update the hooks to pass the right monitor impl to specs (#1259)
e649b6a
Add experimental hook-based examples (#1256)
35352b2
v7.2.1
d047a1a
Hooks API Updates (#1255)
c8ad24b
Enable syntheticDefaultImports in TypeScript examples (#1254)
aa4605c
docs: correct spelling issue
f43fb00
Update examples to link to JS and TS source code (#1252)
646a26c
docs: add a link to the example index in the docs sidebar (#1253)
See the full diff
FAQ and help
There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper bot 🌴