vacuumlabs / name-bazaar

A peer-to-peer marketplace for the exchange of names registered via the Ethereum Name Service
Eclipse Public License 1.0
0 stars 0 forks source link

Errors on navigating to user offerings #60

Open ladislavdubravsky opened 3 years ago

ladislavdubravsky commented 3 years ago

Navigating directly to e.g. http://localhost:4541/user/0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266/offerings causes

district.ui.logging.events:39 Failed to load smart contract {meta: null, cnt: 3, arr: Array(6), __hash: null, cljs$lang$protocol_mask$partition0$: 16647951, …}arr: (6) [{…}, {…}, {…}, "District0xEmails", {…}, {…}]cljs$lang$protocol_mask$partition0$: 16647951cljs$lang$protocol_mask$partition1$: 139268cnt: 3meta: null__hash: null__proto__: Object {ns: "district0x", name: "load-smart-contracts", fqn: "district0x/load-smart-contracts", _hash: -1556189847, cljs$lang$protocol_mask$partition0$: 2153775105, …}

Navigating via clicking on Offering details and Offered by link causes:

react-dom.inc.js:526 Warning: Can't call setState (or forceUpdate) on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, cancel all subscriptions and asynchronous tasks in the componentWillUnmount method.
    in t (created by name_bazaar.ui.components.infinite_list.infinite_list)
    in div (created by name_bazaar.ui.components.infinite_list.infinite_list)
    in name_bazaar.ui.components.infinite_list.infinite_list (created by name_bazaar.ui.components.search_results.infinite_list.search_results_infinite_list)
    in name_bazaar.ui.components.search_results.infinite_list.search_results_infinite_list (created by name_bazaar.ui.components.offering.infinite_list.offering_infinite_list)
    in div (created by name_bazaar.ui.components.offering.infinite_list.offering_infinite_list)
    in name_bazaar.ui.components.offering.infinite_list.offering_infinite_list (created by name_bazaar.ui.pages.offerings_search_page.offerings_search_results)
    in div (created by a)
    in a (created by name_bazaar.ui.pages.offerings_search_page.offerings_search_results)
    in name_bazaar.ui.pages.offerings_search_page.offerings_search_results (created by name_bazaar.ui.components.app_layout.app_layout)
    in div (created by name_bazaar.ui.components.app_layout.app_layout)
    in div (created by name_bazaar.ui.components.app_layout.app_layout)
    in div (created by name_bazaar.ui.components.app_layout.app_layout)
    in name_bazaar.ui.components.app_layout.app_layout (created by page)
    in page (created by name_bazaar.ui.components.main_panel.main_panel)
Siegrift commented 3 years ago

This also happens when you navigate to /offerings subpage

Siegrift commented 3 years ago

The reason is that the response for these fetch requests are returning back the page html, which is probably some bug in the router fix I implemented recently.