Open vinicius98s opened 5 years ago
Hey @vinicius98s , glad to hear you're using the project! That looks like a styled components or emotionjs error actually. Essentially the prop "partiallyActive" is being passed through to the DOM element. React is warning that this isn't a valid DOM attribute. Are you creating a styled TransitionLink or AniLink?
I may need to handle this in this plugin now that I'm thinking about it a bit more. Can you copy paste the JSX from where you're adding AniLink?
I may need to handle this in this plugin now that I'm thinking about it a bit more. Can you copy paste the JSX from where you're adding AniLink?
Sure! I'm using a component wrapping the AniLink because of some default props that I wanted to use:
import React from 'react';
import PropTypes from 'prop-types';
import AniLink from 'gatsby-plugin-transition-link/AniLink';
import { withTheme } from 'styled-components';
const TransitionLink = ({
theme,
color,
direction,
to,
duration,
children,
}) => (
<AniLink
cover
duration={duration}
bg={theme.colors[color]}
direction={direction}
to={to}
>
{children}
</AniLink>
);
TransitionLink.defaultProps = {
direction: 'right',
duration: 0.8,
color: 'main',
to: '/',
};
TransitionLink.propTypes = {
theme: PropTypes.object,
direction: PropTypes.string,
duration: PropTypes.number,
to: PropTypes.string,
color: PropTypes.string,
};
export default withTheme(TransitionLink);
Thanks for bumping this @frazerf . I'll add this to my list of things to check out in the next couple weeks!
Hello everyone, I'm using the AniLink to my pages transitions and on console I'm getting this error:
Is it safe to ignore? There is some way to remove this message from my console?