-
-
Notifications
You must be signed in to change notification settings - Fork 78.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
create a base component #29370
create a base component #29370
Conversation
This increases the dist files. I'm not sure about any performance impact either. We should try and get some benchmarks in before going further with this kind of changes IMO... |
This change doesn't impact perfs, it's just a bit of refactoring to keep our codebase clean. Inheritance is something we already use (Popovers inherit from Tooltip) |
BTW I plan to add a |
Is this worth revisiting or is it too stale/old? |
7c97bb4
to
c7a5a15
Compare
We should investigate a bit more to move the |
e6c5424
to
13491df
Compare
61a458d
to
b556c8c
Compare
8c19fd3
to
f129f0e
Compare
@XhmikosR I worked on that and was able to move But currently I don't think we can do more than that, so this PR as ready to be reviewed |
b3ab870
to
f7b0067
Compare
IMO, this PR now gives benefit to:
|
2344359
to
fe99c9a
Compare
@Johann-S @rohit2sharma95 should we build the base plugin too? Currently it's inlined in each plugin's dist file in js/dist. |
Create a base component which will allow us to mutualize logics across our components
TODO:
toBeInstanceOf
getInstance
in the base componentdispose
in base componentVERSION
in base componentPreview: https://deploy-preview-29370--twbs-bootstrap.netlify.app/