-
Notifications
You must be signed in to change notification settings - Fork 2
ENGWORK-5595: Make MVC compatible with React 18 #18
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
Open
joshwilsonvu
wants to merge
14
commits into
main
Choose a base branch
from
ENGWORK-5595-make-mvc-compatible-react-18
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
465a071
ENGWORK-5595: Updated core logic in ApplicationView to be React 18 co…
joshwilsonvu c5432ae
ENGWORK-5595: Simplify randomId to match aha-app.
joshwilsonvu 096feb2
ENGWORK-5595: Remove View class component handling, extract GC stuff …
joshwilsonvu ff9ef8b
ENGWORK-5595: Make ApplicationController concurrency-safe and type-sa…
joshwilsonvu 6c84516
ENGWORK-5595: Switch to Vitest (easier than making structuredClone wo…
joshwilsonvu 34b3c4e
ENGWORK-5595: Minor changes to get tests passing; add concurrency-foc…
joshwilsonvu 49e6318
ENGWORK-5595: Update comments/readme.
joshwilsonvu 97c6d90
ENGWORK-5595: Remove structuredClone and restore lodash/cloneDeep so …
joshwilsonvu 905c6da
ENGWORK-5595: Switch back to Jest :( and minimize dependency changes …
joshwilsonvu 8a203ba
Update internal documentation and add separate useControllerProps hook
joshwilsonvu c4ed27a
v0.15.0-beta-20250604
joshwilsonvu 6ae983e
ENGWORK-5595: Improve type and runtime compatibility.
joshwilsonvu 2c8a11d
Version bump.
joshwilsonvu bcf8762
ENGWORK-5595: Allow initialize to be sync or async.
joshwilsonvu File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| import { observable } from '@nx-js/observer-util'; | ||
|
|
||
| /** | ||
| * Creates a store. `react-easy-state` supports detecting whether this is called in a component and | ||
| * wrapping with `useMemo` if so, but we don't (and shouldn't) use that, so it's unsupported here. | ||
| * Can wrap in user-land. | ||
| */ | ||
| export function store<S extends object>(obj: S | (() => S)): S { | ||
| return observable(typeof obj === 'function' ? obj() : obj); | ||
| } |
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| export function shallowEqual(a: unknown, b: unknown): boolean { | ||
| if (a === b) return true; | ||
| if ( | ||
| a != null && | ||
| b != null && | ||
| typeof a === 'object' && | ||
| typeof b === 'object' | ||
| ) { | ||
| const aKeys = Object.keys(a); | ||
| const bKeys = Object.keys(b); | ||
| return ( | ||
| aKeys.length === bKeys.length && | ||
| aKeys.every( | ||
| key => | ||
| (a as Record<string | number, unknown>)[key] === | ||
| (b as Record<string | number, unknown>)[key] | ||
| ) | ||
| ); | ||
| } | ||
| return false; | ||
| } |
Oops, something went wrong.
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 was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tsdx is awesome, I'd be happy to adopt that
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this PR is getting pretty large, I'm hesitant to add more changes anymore 😅