feat(TanstackForm): export multiple input to be used in projects#974
Merged
Sebastien-Ahkrin merged 3 commits intomainfrom Feb 5, 2026
Merged
feat(TanstackForm): export multiple input to be used in projects#974Sebastien-Ahkrin merged 3 commits intomainfrom
Sebastien-Ahkrin merged 3 commits intomainfrom
Conversation
* Change name of Input to avoid collision with other components. (Added a prefix) * Export every input to outside of the project * Export Section to be used outside of the project BREAKING CHANGE: Input component from Tanstack has changed name. They are now prefixed with `Input`
Deploying react-science with
|
| Latest commit: |
dc21583
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://614b42a1.react-science.pages.dev |
| Branch Preview URL: | https://fix-deps-export.react-science.pages.dev |
tpoisseau
reviewed
Feb 5, 2026
Contributor
tpoisseau
left a comment
There was a problem hiding this comment.
Did you try to export only the types ?
Because theses inputs should not be used directly. They must be use with form (<form.Input>) not directly <Input>.
Also, it is not a breaking change, you did not rename the components but added exports (with name different than original component name).
example of what I expect if it works:
export type { Input as _TanstackInput } from './input.js';user of react-science should not needs to import theses types, but a name is needed for export const FormSectionA = withForm({/*...*/}). So type to export only the type, _ to signify it's private, and Tanstack prefix to avoid collision.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
BREAKING CHANGE: Input component from Tanstack has changed name. They are now prefixed with
Input