Major Update #152
FrameMuse
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What's new
Features
ModalWindow
has newserialized
propertyModalWindow
has newon
methodModalController
has newon
methodModalController
has newclose
methodModalController
has newshow
andhide
methodsBreaking changes
ModalWindow
now is aclass
instead ofinterface
Modal
is not exporting now, instead you should create your ownModal
usingModalController
ModalContainer
now has a required propertycontroller
id
property inModalWindow
is now anumber
instead ofstring
useModalContext
renamed touseModalWindow
observe
method inModalController
is renamed tosubscribe
andcallback
doesn't havestate
as an argument anymore - Implement interfaces in favor ofuseSyncExternalStore
#142isClosed
property inModalWindow
is renamed toclosed
isFocused
property inModalWindow
is removedisOpen
toactive
inModalController
ModalState
toModalSnapshot
useModalState
touseModalSnapshot
What's Changed
README.md
by @FrameMuse in Fixed grammar inREADME.md
#133README.md
by @FrameMuse in UpdateREADME.md
#145Full Changelog: v1.2.3...v2.0.0
Migration from
v1.x.x
#1
Create local instance of
ModalController
#2
Pass your local
Modal
toModalContainer
#3
Rename properies using your IDE or create a wrapper as dependency injection.
This discussion was created from the release Major Update.
Beta Was this translation helpful? Give feedback.
All reactions