Code Monkey home page Code Monkey logo

Comments (23)

vadim9999 avatar vadim9999 commented on June 12, 2024 3

@atherdon Please review header

from react-print-pdf.

atherdon avatar atherdon commented on June 12, 2024 1

from react-print-pdf.

atherdon avatar atherdon commented on June 12, 2024 1

so, if i was you - i'll try to figure out the difference inside of code and try to make it for for all cases at the same time.
then i'll push new version at npm
then i'll install that latest version at all 3-4 repositories, that have header component and see if it works

from react-print-pdf.

atherdon avatar atherdon commented on June 12, 2024 1

i'm wroking on it. looks like it will be fixed soon. not ideal but - right now we don't have that eror. updating showcase and recipe-ntd with the same logic

from react-print-pdf.

vadim9999 avatar vadim9999 commented on June 12, 2024

@atherdon

from react-print-pdf.

atherdon avatar atherdon commented on June 12, 2024

i'm on it.
Should i review it only at this repo or also at recipe-antd and gs/showcase as well?

from react-print-pdf.

vadim9999 avatar vadim9999 commented on June 12, 2024

Review it at this repo. Now I will update at other recipe-antd and gs/showcase

from react-print-pdf.

atherdon avatar atherdon commented on June 12, 2024

from react-print-pdf.

vadim9999 avatar vadim9999 commented on June 12, 2024

Header using component Link from react-router-dom. If you will use header without Router you will get Error

from react-print-pdf.

vadim9999 avatar vadim9999 commented on June 12, 2024

code looks ok, but i have fetch issue at selector, can you take a look?

it's in this repo?

from react-print-pdf.

atherdon avatar atherdon commented on June 12, 2024

from react-print-pdf.

vadim9999 avatar vadim9999 commented on June 12, 2024

Header will be working with Router. Else you get this Error:

Error: Invariant failed: You should not use <Link> outside a <Router>

Because in Header we are using component Link that works in component BrowserRouter.
We can fix this replacing component Link by

from react-print-pdf.

atherdon avatar atherdon commented on June 12, 2024

from react-print-pdf.

vadim9999 avatar vadim9999 commented on June 12, 2024

you can type localhost:3000/
In react-print-pdf I should add in BrowserRouter header that it will appear on all paths

from react-print-pdf.

vadim9999 avatar vadim9999 commented on June 12, 2024

In recipe-ant I also add it to router

from react-print-pdf.

atherdon avatar atherdon commented on June 12, 2024

from react-print-pdf.

vadim9999 avatar vadim9999 commented on June 12, 2024

yes

from react-print-pdf.

atherdon avatar atherdon commented on June 12, 2024

​still got an error. maybe i should downgrade fetch? it maybe will help to my local version

image

from react-print-pdf.

vadim9999 avatar vadim9999 commented on June 12, 2024

yes, it's a problem with fetch. I tried to downgrade but it's not a success.
Now you can test showcase.

from react-print-pdf.

vadim9999 avatar vadim9999 commented on June 12, 2024

Summary

  1. In all 3 projects: react-print-pdf, recipe-antd, showcase are Header that will appear in all paths(/, padf1, groceries).
  2. Fetch in this 3 projects doesn't work. Need to fix it.
  3. After we will fix fetch we should add a listener on each button that is in Header. Now Header It's just buttons that nothing doing.

from react-print-pdf.

atherdon avatar atherdon commented on June 12, 2024

from react-print-pdf.

vadim9999 avatar vadim9999 commented on June 12, 2024

Do you mean add here travic ci?

from react-print-pdf.

atherdon avatar atherdon commented on June 12, 2024

from react-print-pdf.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.