#Image component from Remix JS (No onLoad event?)

1 messages · Page 1 of 1 (latest)

gritty spade
#

What image component are you talking about?

velvet field
#

@gritty spade Image component from Remix JS. You can read about it on Remix Docs

#

Sorry I was wrong. I was mixing with Image component from Shopify Hydrogen. I thought it was Remix one.

gritty spade
velvet field
#

Yes thank you I saw it before and used it to build this feature in my Remix JS app. But I'm trying now to do the similar thing with Image component from Shopify. It seem that there are advantages to use Image component from Hydrogen Shopify for rendering images from the Storefront API of Shopify. It does not seem to have a onLoad feature like NextJS does for example with their Image component. Thank you for your help and happy coding!

gritty spade
#

you might be able to combine them if you can get ahold of the image src it's trying to load

#

the key is to put that in new Image() and then you have an onLoad event you can watch

#

but I don't know hydrogen's components too well

velvet field
#

Ok thank you @gritty spade it's really appreciated I will take a look into your idea and try some things with it. I will also add your website to my bookmark for fine-tuning my knowledge on Remix JS. I will follow you aswell. Have a good day from Montreal, Quebec, Canada! nice

gritty spade
#

Montréal is a lovely city!

#

I'm based out of toronto but travelling atm

velvet field
#

It's been only like 1 week I use Discord. Is it ok I add you as a friend? Does people do that. I still don't yet the "rules" in general yet lol

#

Very nice man. If ever there is some event about Remix JS around would love you let me know if you've got a change!

gritty spade
#

I don't use the friends feature here, I'm not really sure what it's for

#

this is the official remix meetups group but surprisingly none in toronto or montreal https://www.meetup.com/pro/remix-run/

velvet field
#

I'm building a headless eCommerce for RedOne Music Canada based here in Montreal. We are using Shopify Hydrogen solution hosted with Shopify Oxygen. Since Shopify aquired Remix JS as their primary framework, I had to learn Remix JS. I fell in love in Remix right at the first moment I was using it. I think Remix JS will have a nice future, also if we think that Shopify team will help Remix team to make the framework even better. Very excited for version 3.

#

How we can get in touch. When I finish my project I can share our link with you and you can tell me what you think about it. Let me know if it's something that can interest you!

#

I'll put this meeting link in my bookmarks too! Thx

gritty spade
velvet field
#

Ok cool man I'll message you whenever we release our first version of the headless ecommerce! I'll share it also on the main feed so people can take a look. If I get feedback from community and you (if you have time ofcrouse) that could really help us.