Skip to content
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

Fix hot module replacement #1480

Merged
merged 6 commits into from
Apr 8, 2021
Merged

Fix hot module replacement #1480

merged 6 commits into from
Apr 8, 2021

Conversation

chrismatix
Copy link
Contributor

@chrismatix chrismatix commented Apr 7, 2021

resolves #387

@@ -207,10 +207,10 @@ function allReducer(
...state.items[action.payload.identifier],
metadata: {
// Ensure that there is always a display name present
...(<MetadataEvent<ConversationMetadata>>action.payload).metadata,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This way of doing type assertions is outdated and conflicts with the babel typescript plugin

lucapette
lucapette previously approved these changes Apr 8, 2021
@@ -1,5 +1,5 @@
export interface ConnectTwilioSmsRequestPayload {
sourceChannelId?: string;
sourceChannelId: string;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❤️

@chrismatix chrismatix changed the title [WIP] Fix hot module replacement Fix hot module replacement Apr 8, 2021
@chrismatix chrismatix marked this pull request as ready for review April 8, 2021 14:27
@@ -47,7 +77,7 @@ export class HttpClient {
try {
return await response.json();
} catch {
// NOP
// NOOP
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💣

Copy link
Contributor

@AitorAlgorta AitorAlgorta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good stuff

@chrismatix
Copy link
Contributor Author

@bitboxer please come back. See I fixed it 🙇

@chrismatix chrismatix merged commit 994dc0c into develop Apr 8, 2021
@chrismatix chrismatix deleted the fix/react-hmr branch April 8, 2021 15:10
@bitboxer
Copy link
Contributor

bitboxer commented Apr 8, 2021

I am now working on recover but will happily switch back to airy if you can make your boss pay me 😉 .

@steffh
Copy link
Collaborator

steffh commented Apr 8, 2021 via email

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.

javascript hot code reloading not working in demo app
5 participants