Skip to content

fix: type unions should now work properly#1180

Merged
crutchcorn merged 5 commits intoreusable-app-hookfrom
reusable-app-hook-fixed-union-types
Feb 28, 2025
Merged

fix: type unions should now work properly#1180
crutchcorn merged 5 commits intoreusable-app-hookfrom
reusable-app-hook-fixed-union-types

Conversation

@crutchcorn
Copy link
Member

Taken from #724 and rebased onto the current codebase.

@crutchcorn crutchcorn marked this pull request as ready for review February 25, 2025 10:56
@nx-cloud
Copy link

nx-cloud bot commented Feb 25, 2025

View your CI Pipeline Execution ↗ for commit b7c61ab.

Command Status Duration Result
nx affected --targets=test:sherif,test:knip,tes... ✅ Succeeded 1m 8s View ↗
nx run-many --target=build --exclude=examples/** ✅ Succeeded 1s View ↗

☁️ Nx Cloud last updated this comment at 2025-02-28 14:00:33 UTC

@pkg-pr-new
Copy link

pkg-pr-new bot commented Feb 25, 2025

Open in Stackblitz

More templates

@tanstack/angular-form

npm i https://pkg.pr.new/@tanstack/angular-form@1180

@tanstack/form-core

npm i https://pkg.pr.new/@tanstack/form-core@1180

@tanstack/react-form

npm i https://pkg.pr.new/@tanstack/react-form@1180

@tanstack/lit-form

npm i https://pkg.pr.new/@tanstack/lit-form@1180

@tanstack/solid-form

npm i https://pkg.pr.new/@tanstack/solid-form@1180

@tanstack/vue-form

npm i https://pkg.pr.new/@tanstack/vue-form@1180

commit: b7c61ab

@codecov
Copy link

codecov bot commented Feb 25, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 0.00%. Comparing base (caf586b) to head (b7c61ab).
Report is 1 commits behind head on reusable-app-hook.

Additional details and impacted files
@@                  Coverage Diff                  @@
##           reusable-app-hook   #1180       +/-   ##
=====================================================
- Coverage              45.51%       0   -45.52%     
=====================================================
  Files                     13       0       -13     
  Lines                    145       0      -145     
  Branches                  25       0       -25     
=====================================================
- Hits                      66       0       -66     
+ Misses                    69       0       -69     
+ Partials                  10       0       -10     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@crutchcorn crutchcorn force-pushed the reusable-app-hook-fixed-union-types branch from f2d04a4 to 5c8870f Compare February 25, 2025 17:48
@crutchcorn crutchcorn merged commit b06ac4b into reusable-app-hook Feb 28, 2025
6 checks passed
@crutchcorn crutchcorn deleted the reusable-app-hook-fixed-union-types branch February 28, 2025 20:52
crutchcorn added a commit that referenced this pull request Mar 1, 2025
* feat: add ability to create custom form hook for better app-facing DX

* test: add tests for createFormHook

* feat: add withForm HOC

* Revert "feat: add withForm HOC"

This reverts commit 36e42f0.

* chore: fix typings from `main`

* Reapply "feat: add withForm HOC"

This reverts commit b6e0f91.

* ci: apply automated fixes and generate docs

* chore: fix CI

* feat: add form components functionality

* ci: apply automated fixes and generate docs

* fix: type unions should now work properly (#1180)

* fix: type unions should now work properly

Co-authored-by: irwinarruda <arruda.irwin@gmail.com>

* ci: apply automated fixes and generate docs

* chore: reintroduce TDepth for infinate depth issues

Co-authored-by: irwinarruda <arruda.irwin@gmail.com>

* ci: apply automated fixes and generate docs

* test: add large schema test

---------

Co-authored-by: irwinarruda <arruda.irwin@gmail.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>

* docs: add initial philosophy doc

* docs: add initial docs for form composition

* docs: add withForm docs examples

* docs: add form composition page to docs config

* fix: attempt to fix infinite loops with createFormHook

* ci: apply automated fixes and generate docs

* docs: Apply suggestions from code review

Co-authored-by: LeCarbonator <18158911+LeCarbonator@users.noreply.github.com>

* feat: make minimum TS supported version 5.4, remove NoInfer hack

* chore: fix Sherif TS errors

* ci: apply automated fixes and generate docs

* docs: add Mermaid chart from the GitHub PR

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: irwinarruda <arruda.irwin@gmail.com>
Co-authored-by: LeCarbonator <18158911+LeCarbonator@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant