An optoelectronic device. The optoelectronic device comprising: a rib waveguide provided on a substrate of the device, the rib waveguide comprising a ridge portion and a slab portion; a heater, disposed within the slab portion; a thermally isolating trench, adjacent to the rib waveguide, and extending into the substrate of the device; and a thermally isolating cavity within the substrate, which is directly connected to the thermally isolating trench, and which extends across at least a part of a width of the rib waveguide between the rib waveguide and the substrate.