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

track when a custom type is saved #468

Merged
merged 4 commits into from
May 19, 2022
Merged

Conversation

MarcMcIntosh
Copy link
Contributor

Types of changes

  • Bug fix (a non-breaking change which fixes an issue)
  • New feature (a non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Description

Checklist:

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly. (PR: #)
  • All new and existing tests are passing.

@@ -2,18 +2,18 @@ import React from "react";
import { Box, Button, Spinner, Text } from "theme-ui";

import Header from "../../../../components/Header";
import useSliceMachineActions from "@src/modules/useSliceMachineActions";
Copy link
Member

Choose a reason for hiding this comment

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

It's not the first time I see a change of import in your PR, is there a specific reason to do that ?

I mean it's not like the code didn't work before so is it because you prefer relative path ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Multiple reasons.

Copy link
Member

Choose a reason for hiding this comment

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

  • sometimes the alias path is long ✅
  • my ide doesn't work with them 🟥 , pretty sure your IDE should be able to do that
  • use of module alias, I do agree that is not a good practice.

Overall, if the path is long I would say ok but here replacing "@src" with "../../../../" doesn't seems right and honestly the aliases looses their purpose.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

my ide doesn't work with them 🟥 , pretty sure your IDE should be able to do that
Well it doesn't.

@@ -2,18 +2,18 @@ import React from "react";
import { Box, Button, Spinner, Text } from "theme-ui";

import Header from "../../../../components/Header";
import useSliceMachineActions from "@src/modules/useSliceMachineActions";
Copy link
Member

Choose a reason for hiding this comment

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

  • sometimes the alias path is long ✅
  • my ide doesn't work with them 🟥 , pretty sure your IDE should be able to do that
  • use of module alias, I do agree that is not a good practice.

Overall, if the path is long I would say ok but here replacing "@src" with "../../../../" doesn't seems right and honestly the aliases looses their purpose.

@MarcMcIntosh MarcMcIntosh merged commit bc72846 into v0.3.8 May 19, 2022
@MarcMcIntosh MarcMcIntosh deleted the mm/tracking-ct-saved branch May 19, 2022 10:21
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.

2 participants