by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Jul 05 16:56
    michalko commented #187
  • Jun 30 06:18
    desaikalpesh34 opened #187
  • Jun 06 05:55
    tirthbodawala commented #186
  • Jun 06 05:46
    tirthbodawala commented #181
  • Jun 05 17:22
    adamcanray commented #181
  • Jun 05 17:22
    adamcanray commented #181
  • Jun 04 12:21
    tirthbodawala closed #184
  • May 29 08:08
    kalandher opened #186
  • May 27 06:28

    greenkeeper[bot] on fork-ts-checker-webpack-plugin-4.1.6

    (compare)

  • May 27 06:26

    greenkeeper[bot] on fork-ts-checker-webpack-plugin-4.1.6

    chore(package): update fork-ts-… chore(package): update lockfile… (compare)

  • May 25 14:38

    greenkeeper[bot] on fork-ts-checker-webpack-plugin-4.1.5

    (compare)

  • May 25 14:37

    greenkeeper[bot] on fork-ts-checker-webpack-plugin-4.1.5

    chore(package): update fork-ts-… chore(package): update lockfile… (compare)

  • May 21 05:34
    tirthbodawala closed #183
  • May 21 05:34
    tirthbodawala commented #183
  • May 19 20:11
    satishblr commented #175
  • May 19 20:09
    satishblr commented #175
  • May 19 19:19
    snyk-bot opened #185
  • May 19 19:19

    tirthbodawala on snyk-fix-e1308597e9c08c95d69efa092b9702b8

    fix: package.json, package-lock… (compare)

  • May 19 19:19

    tirthbodawala on snyk-fix-e1308597e9c08c95d69efa092b9702b8

    fix: package.json, package-lock… (compare)

  • May 19 19:19

    tirthbodawala on snyk-fix-e1308597e9c08c95d69efa092b9702b8

    fix: package.json, package-lock… (compare)

Tirth Bodawala
@tirthbodawala
No, if you need only less, then please use @pawjs/less
xolife-bl
@xolife-bl
Thank you very much!!! Finally understand everything!
Enjoy your day sir :)
Tirth Bodawala
@tirthbodawala
:+1:
tentwentyniel
@tentwentyniel
@tirthbodawala I am now able to make updateSeo work. It does work on page load but when I share the page, it still shows the default metas
Tirth Bodawala
@tirthbodawala
I am so sorry my friend, I am super super busy with a project. and it si very demanding. I am 24x7 busy with it and thus was not able to look at your issue.
Apologies.
tentwentyniel
@tentwentyniel
No problem @tirthbodawala :) Do you know why the above scenario happens?
Yash Thakur
@yash-thakur
@tentwentyniel you need to scrap it using facebook sharing debugger and it will update when you share the page
Josh Williams
@jackjwilliams
I need some clarification on something (I haven't been able to find this explicitly stated in the docs): Does ReactPWA force you to use Node / Express for your entire backend? Or is it just for hosting the UI for SSR? My backend data api is written in c#
Tirth Bodawala
@tirthbodawala
@jackjwilliams, if you need SSR, then you must use NodeJS with Exrpress
It runs a express server with nodejs to ensure SSR.
Josh Williams
@jackjwilliams
Is that just for SSR? Lets say I do want SSR, so I use Express just to render those pages for me. Do I also have to have all my data endpoints in express (GET, PUT, POST, DELETE, etc..), or can I use whatever backend I want?
Tirth Bodawala
@tirthbodawala
With ReactPWA framework, you do not need to use Express JS framework yourself, it is there in the background.
You just need nodejs to execute it while deploying or developing it.,
And NO, you can host your API else where and use libraries like, cross-fetch to get SSR data.
Josh Williams
@jackjwilliams
Interesting
tentwentyniel
@tentwentyniel
@tirthbodawala is there a way to pass htmlProps from server to routes? I'd like to push a script on page load
Tirth Bodawala
@tirthbodawala
Well you can do that in server.tsx/server.jsx
What kind of script are we talking here?
tentwentyniel
@tentwentyniel
I am planning to push <script type="application/ld+json"> for google structured data markup
Tirth Bodawala
@tirthbodawala
Will it be common for all pages?
tentwentyniel
@tentwentyniel
On each page, there will be different json schema
So on routes, I am calling all the page details and planning to head.push() the script
Tirth Bodawala
@tirthbodawala
Then depending on routes, can you not simplye add it to JSX components?
<script type="application/ld+json"> can be pushed inside body as well.
tentwentyniel
@tentwentyniel
But it has to be on the server side
Tirth Bodawala
@tirthbodawala
ReactPWA is SSRed
tentwentyniel
@tentwentyniel
I meant it has to be on beforeHtmlRender
Tirth Bodawala
@tirthbodawala
Ok, have a look at the url https://m.peddler.com/nl/store/qnoop/
If you use the same url in google structured data testing tool
tentwentyniel
@tentwentyniel
Wait let me see
Tirth Bodawala
@tirthbodawala
image.png
Are you pushing the script on component mount?
on useEffect?
Tirth Bodawala
@tirthbodawala
No. Let me share the snippet
image.png
I am just using it as below in the component that is rendered.
tentwentyniel
@tentwentyniel
Oh so it's on the component itself
Tirth Bodawala
@tirthbodawala
Yes. Does that make sense?
tentwentyniel
@tentwentyniel
Yeah it does. Let me try that approach. So it will not be on server.js. It will be on component: () => import("../modules/list-view"), this component for example. Yeah?
Tirth Bodawala
@tirthbodawala
yes in list-view if you want it to be.
tentwentyniel
@tentwentyniel
ok cool let me try. Thank you!
Tirth Bodawala
@tirthbodawala
:+1:
tentwentyniel
@tentwentyniel
@tirthbodawala it's not working for me. Do I need to update pawjs version?
Josh Williams
@jackjwilliams
I'm a little confused about iOS support for PWAs (in general - not specific to ReactPWA). I've seen people say it "can" work, I've seen people say iOS doesn't support them yet. What is the actual deal?
Tirth Bodawala
@tirthbodawala
@jackjwilliams well IOS has limited support for PWAs, like offline mode does not work, push notifications does not work etc.
auto request for 'Add to homescreen' is still missing, like it is available in android, you have to ask user to manually add to home screen.