Skip to main content

Posts

Showing posts from October, 2020

A component is changing an uncontrolled input of type text to be controlled error in ReactJS - Formik

 https://stackoverflow.com/questions/47012169/a-component-is-changing-an-uncontrolled-input-of-type-text-to-be-controlled-erro default value can't be undefined  case 'listingBrokerOfficeName' : value = ( listingBroker || {}). officeName break change to: case 'listingBrokerOfficeName' : value = ( listingBroker || {}). officeName || '' break

pub/sub trigger by Cloud Scheduler - cloud function - firebase emulator for pub/sub

The problem: sending notifications to the owner of the expired listing The solution: target pub/sub - publish messages with Cloud scheduler on 11 pm daily create topic/subscription - "cron-topic" / " sub_push_cron " delivery type: push ( pull ) setup endpoint on backend NodeJS use NGROK to make the local NODE server available for Google Pub/Sub https://3274d032fcc7.ngrok.io/copper?token=YOUR_TOKEN_00hfMQOXpD axios Graphql API: processExpiredListins (getExpiredListins => owners => sendNotificaton) The Benefit: why no cloud function needed?  https://cloud.google.com/scheduler/docs/tut-pub-sub Firebase Emulator